Created
October 19, 2014 03:13
-
-
Save mr1337357/c8169949ec9020394ef2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Claudio Kozicky <claudiokozicky@gmail.com> | |
# Contributor: Yann Kaiser <kaiser.yann@gmail.com> | |
pkgname=jamestown | |
pkgver=1.0.2 | |
_pkgver=1_0_2 | |
pkgrel=1 | |
pkgdesc="A neo-classical top-down shooter for up to four players set on 17th-century British Colonial Mars." | |
arch=(i686 x86_64) | |
url="http://www.finalformgames.com/jamestown/" | |
license=(custom) | |
depends=(libgl openal sdl) | |
source=("JamestownLinux_1_0_2.zip" | |
"jamestown.desktop") | |
PKGEXT=.pkg.tar | |
sha512sums=('77f3f19992009eca9b5cb114e0421d1bc4d16227ef33feae9af64fbabbacc20f14dad46990e420f3aea560cf1012315d02e0ab5175020a4f477f27a710fc12aa' | |
'12570818384be0bfbaace962e665246b84eb088b7607720f77a777531c3fd77dbb746279f85b0ffbb4b89b8f4e4d7741fce25198431066e851b6b439c0f010c9') | |
prepare() | |
{ | |
# extract data dir from installer | |
cd $srcdir | |
if unzip JamestownInstaller_1_0_2-bin; | |
then echo win | |
fi | |
# cleanup | |
cd data | |
rm -r x86 amd64 Distribution.txt LICENSES.TXT README-linux.txt | |
} | |
package() | |
{ | |
# data | |
cd "$srcdir"/data | |
find Archives -type f -exec install -Dm644 {} "$pkgdir"/opt/$pkgname/{} \; | |
install -m755 -t "$pkgdir"/opt/$pkgname Jamestown Jamestown-* | |
# doc | |
install -Dm644 README-linux-generic.txt "$pkgdir"/usr/share/doc/$pkgname/README | |
# legal | |
install -Dm644 Jamestown_EULA.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE | |
# launcher | |
install -d "$pkgdir"/usr/bin | |
ln -s /opt/$pkgname/Jamestown "$pkgdir"/usr/bin/$pkgname | |
# desktop integration | |
install -Dm644 $pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png | |
install -Dm644 ../$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop | |
} | |
# vim:et:sw=4:sts=4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment