summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 281c939fe75a146efb068d919c895d35db6dacb8 (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
43
44
45
46
47
# Maintainer: Sander Smid-Merlijn <sander..smid@gmail.com>
pkgname=stencyl
pkgver=3.4.0
pkgrel=2
pkgdesc='Create amazing games without code'
arch=(i686 x86_64)
url=http://www.stencyl.com
license=(custom)
#depends=()
#makedepends=()
#conflicts=()
#provides=()
options=('!strip')
#install=
source=(stencyl
        stencyl.desktop
        stencyl.png
        LICENSE)
md5sums=('e97ff31637ae4f223062269bfce3f8ab'
         '6b52a9ecce3bddda2e77b3884503b888'
         'c99ae55db267e86c0936e01662ee12ea'
         '986e231db4a39dd7fa59c93a7e06b7c2')

[ "$CARCH" = "i686" ]   && {
    source+=("${pkgname}-linux.tar.gz::http://www.stencyl.com/download/get/lin32/")
    md5sums+=('3d41fe870d91b6acdd621d46ff00e9c7')
}
[ "$CARCH" = "x86_64" ] && {
    source+=("${pkgname}-linux.tar.gz::http://www.stencyl.com/download/get/lin64/")
    md5sums+=('398c65c78af155d8e1ed34fa58837102')
}

noextract=("$pkgname.tar.gz")

package() {
    # Uncompress the source into the final directory
    install -Ddm755 "$pkgdir"/usr/share/stencyl
    tar -xzf "$srcdir/${pkgname}-linux.tar.gz" -C "$pkgdir"/usr/share/stencyl/

    # Install the custom launch script, the .desktop and the icon
    install -Dm755 "$srcdir/stencyl" "$pkgdir/usr/bin/stencyl"
    install -Dm755 "$srcdir/stencyl.desktop" "$pkgdir/usr/share/applications/stencyl.desktop"
    install -Dm644 "$srcdir/stencyl.png" "$pkgdir/usr/share/pixmaps/stencyl.png"

    # Install the license
    install -Dm644 "$srcdir/LICENSE" "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}