# Maintainer: Sander Smid-Merlijn 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 }