Created
September 19, 2013 14:22
-
-
Save saik0/6624242 to your computer and use it in GitHub Desktop.
Boson X PKGBUILD
This file contains hidden or 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
[Desktop Entry] | |
Name=Boson X | |
Type=Application | |
Categories=Game; | |
Terminal=false | |
Exec=boson-x | |
Icon=boson-x |
This file contains hidden or 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
#!/bin/bash | |
cd /usr/share/boson-x | |
./bosonx |
This file contains hidden or 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: Ben R <thebenj88 *AT* gmail *DOT* com> | |
pkgname=boson-x | |
pkgver=1.0.1 | |
_pkgver=${pkgver//\./_} # replace all '.' with '_' | |
pkgrel=3 | |
pkgdesc="DRM-free rotational running game" | |
arch=('x86_64') | |
url="http://www.boson-x.com/" | |
license=('Custom') | |
source=("http://downloads.muandheyo.com/BosonX_v${_pkgver}_Linux.zip" | |
'bosonx.sh' | |
"${pkgname}.desktop") | |
depends=('glibc' 'libgl') | |
sha1sums=('ddf62263730cdac3289606d38d2f2f072ba5a15c' | |
'a2ad55adce9bef502c0fcb83f1da7646d8822099' | |
'270cf9372dde2ec3012b47c2835751211ddeb65c') | |
package() { | |
cd "${srcdir}/BosonX_v${_pkgver}_Linux/" | |
# Executable | |
install -Dm755 bosonx \ | |
"${pkgdir}/usr/share/${pkgname}/bosonx" | |
# Desktop File | |
echo -e "Comment=${pkgdesc}\nVersion=${pkgver}" \ | |
>> "${srcdir}/${pkgname}.desktop" | |
install -Dm755 "${srcdir}/${pkgname}.desktop" \ | |
"${pkgdir}/usr/share/applications/${pkgname}.desktop" | |
# Icon | |
install -Dm644 data/bosonx_symbol.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png | |
# Game data | |
cp -rd --no-preserve=ownership data/ "${pkgdir}/usr/share/${pkgname}/data" | |
# bosonx executable wants to be in the same directory as 'data/' | |
# Symbolic links aren't currently working. | |
install -Dm755 ${srcdir}/bosonx.sh "${pkgdir}/usr/bin/${pkgname}" | |
# License | |
install -Dm644 LICENSES.txt \ | |
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
# Readme | |
install -Dm644 README.txt \ | |
"${pkgdir}/usr/share/doc/${pkgname}/README" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment