Created
October 19, 2014 04:35
-
-
Save mr1337357/8343fbdd9d2eab7e2e52 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: mr1337357 <mr1337357@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=("https://github.com/ValveSoftware/source-sdk-2013/raw/master/sp/src/lib/public/linux32/libsteam_api.so" | |
"JamestownLinux_1_0_2.zip" | |
"jamestown.desktop") | |
PKGEXT=.pkg.tar | |
sha512sums=('473aaadfa02ea8fed1b67f0552a6cc86ef04cf3c709ae9dd5570f3507e916fff1e8fc3c4f791f55ff1d7e3d7e5e5c8526ace85c57aabccf42bb828321faad26e' | |
'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 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-* | |
install -d -Dm755 x86 "$pkgdir"/opt/"$pkgname"/ | |
install -d -Dm755 amd64 "$pkgdir"/opt/"$pkgname"/ | |
# 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-x86 "$pkgdir"/usr/bin/$pkgname | |
install -Dm644 ../libsteam_api.so "$pkgdir"/opt/$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