summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 917ab078f5aed727d5cd5343f10139fd0e37fec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Frederik Enste <frederik at fenste dot de>

pkgname=materialize-bin
pkgver=1.78
pkgrel=1
pkgdesc="Image to Material tool (uses Wine)."
arch=(x86_64)
url="http://boundingboxsoftware.com/index.html"
license=('GPL')
depends=(wine winetricks desktop-file-utils)
makedepends=(unzip)
source=("http://boundingboxsoftware.com/materialize/download/Materialize_${pkgver}.zip"
        "https://raw.githubusercontent.com/BoundingBoxSoftware/Materialize/master/LICENSE"
        "${pkgname}.sh"
        "${pkgname}.desktop")
install="${pkgname}.install"
sha256sums=('b0f6e3a905781e85dcd7db2383646bce51b8984ab93d1e3d13be42d5bea8904a'
            '3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986'
            'efd19915c8ae21f9b4031ccfe4be3bad741040af0379f848be08e9a20d4d54ff'
            'd1247c77728c389d385c7c830802d9bcbb1c20be9b98136b815188c8c3d79cbe')

build() {
  # unpack the zip file (into Materialize_Data)
  unzip -o Materialize_${pkgver}.zip -d materialize
}

package() {
  # install program into destination
  mkdir -p "${pkgdir}/opt/${pkgname}"
  cp -r ${srcdir}/materialize/* "${pkgdir}/opt/${pkgname}"
  chown root:root "${pkgdir}/opt/${pkgname}"
  chmod -R 755 "${pkgdir}/opt/${pkgname}"

  # install license
  install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/license/${pkgname}/LICENSE"

  # install start script
  install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"

  # install desktop
  install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}