diff options
author | Kyle Keen | 2017-11-24 08:36:58 -0500 |
---|---|---|
committer | Kyle Keen | 2017-11-24 08:36:58 -0500 |
commit | 625da38614677802950f0f7977e0928e2e7b5f93 (patch) | |
tree | 362bea689d05392a3dc4e7b0ac938ea79d77a4d5 | |
parent | 6eb7d33ec5a24ff02b016f9c4a37370e38e43562 (diff) | |
download | aur-625da38614677802950f0f7977e0928e2e7b5f93.tar.gz |
fix music
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 20 insertions, 17 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Thu Nov 23 16:33:04 UTC 2017 +# Fri Nov 24 13:36:55 UTC 2017 pkgbase = hyperrogue pkgdesc = You are a lone outsider in a strange, non-Euclidean hyperbolic world. Optional music. pkgver = 10.0g @@ -3,26 +3,27 @@ pkgname=hyperrogue pkgver=10.0g _pkgver=100g pkgrel=1 - -# todo: fix music -_music="" - pkgdesc="You are a lone outsider in a strange, non-Euclidean hyperbolic world. Optional music." arch=('i686' 'x86_64') url="http://www.roguetemple.com/z/hyper.php" license=('GPL2') depends=('sdl_gfx' 'sdl_ttf' 'sdl_mixer' 'mesa' 'ttf-dejavu') makedepends=('glu') + +# set to "" for none or "low" or "full" +_music="" + source=("http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-src.tgz") -# http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-lq.zip -# http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-win.zip md5sums=('9ce82a9f3749de2702b52bcfd45349be') -#if [[ "$_music" == "" ]]; then -# md5sums=('36b723d3b3ae3d4338b25d39c4388360') -#fi -#if [[ "$_music" == "-lo" ]]; then -# md5sums=('1d009127962c9d216e865866aead6aa0') -#fi +#echo http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-{lq,win}.zip +if [[ "$_music" == "low" ]]; then + source+=("http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-lq.zip") + md5sums+=('eba636fbb51e16af09fa8101580afd58') +fi +if [[ "$_music" == "full" ]]; then + source+=("http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-win.zip") + md5sums+=('568c4bfdd88a244def3c66d075b93b34') +fi prepare() { cd "$srcdir/$pkgname${_pkgver}-src" @@ -39,10 +40,12 @@ build() { package() { cd "$srcdir/$pkgname${_pkgver}-src" install -Dm755 hyper "$pkgdir/usr/bin/hyperrogue" - #if [[ -z "$_music" ]]; then - # install -Dm644 hyperrogue-music.txt "$pkgdir/usr/share/hyperrogue/hyperrogue-music.txt" - # cp *.ogg "$pkgdir/usr/share/hyperrogue/" - #fi + if [[ -z "$_music" ]]; then + return + fi + install -Dm644 hyperrogue-music.txt "$pkgdir/usr/share/hyperrogue/hyperrogue-music.txt" + cd "$srcdir/$pkgname${_pkgver}" + cp *.ogg "$pkgdir/usr/share/hyperrogue/" } |