diff options
author | Buck Melanoma | 2021-11-23 11:58:13 -0800 |
---|---|---|
committer | Buck Melanoma | 2021-11-23 11:58:13 -0800 |
commit | 58afd0466be8ba761dd2a3b9d02a2be07d66e959 (patch) | |
tree | bb67063558403b50be38209a0c26bb7d6af23e1f | |
parent | efc93827fda596e8ff854308cc77002d0273bdb5 (diff) | |
download | aur-58afd0466be8ba761dd2a3b9d02a2be07d66e959.tar.gz |
Add widescreen tilemaps, fix launch warnings
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | cannonball.sh | 5 |
3 files changed, 11 insertions, 2 deletions
@@ -17,6 +17,6 @@ pkgbase = cannonball source = cannonball.sh sha256sums = e2cf8e21619b183a9fd835ae34ce65fb3d014c2fea37723fc8ba05681ed317ce sha256sums = 04d0c0e9252bccfef97bb59c9e89376461f9b52845570b2ebc14610ce74cf1ff - sha256sums = 787fdfef544e41f5c358afb1a8d31bf22d0ff48631467b590f046dbcd9fc45af + sha256sums = 81f2a1a4e473c87272ce9321dfc616614760dc4c7a0d367d167413e3a71ec8b9 pkgname = cannonball @@ -15,7 +15,7 @@ source=($pkgname-$pkgver.tar.gz::"https://github.com/djyt/cannonball/archive/v$p "$pkgname.sh") sha256sums=('e2cf8e21619b183a9fd835ae34ce65fb3d014c2fea37723fc8ba05681ed317ce' '04d0c0e9252bccfef97bb59c9e89376461f9b52845570b2ebc14610ce74cf1ff' - '787fdfef544e41f5c358afb1a8d31bf22d0ff48631467b590f046dbcd9fc45af') + '81f2a1a4e473c87272ce9321dfc616614760dc4c7a0d367d167413e3a71ec8b9') prepare() { cd $pkgname-$pkgver @@ -37,6 +37,10 @@ package() { install -Dm644 res/icon.png "$pkgdir"/usr/share/icons/hicolor/256x256/apps/$pkgname.png install -Dm755 ../$pkgname.sh "$pkgdir"/usr/bin/$pkgname install -Dm755 build/$pkgname "$pkgdir"/usr/lib/$pkgname/$pkgname + + # widescreen tilemap data + install -d "$pkgdir"/usr/share/${pkgname%-*}/res + install -m644 res/*.bin "$pkgdir"/usr/share/${pkgname%-*}/res # configuration file install -Dm644 build/config.xml "$pkgdir"/usr/share/$pkgname/config.xml diff --git a/cannonball.sh b/cannonball.sh index 6f773399fcf6..80a4d46cc00b 100644 --- a/cannonball.sh +++ b/cannonball.sh @@ -11,5 +11,10 @@ if [ ! -f ~/.cannonball/config.xml ]; then cp /usr/share/cannonball/config.xml ~/.cannonball fi +# widescreen tilemaps +if [ ! -h ~/.cannonball/res ]; then + ln -s /usr/share/cannonball/res ~/.cannonball +fi + # run the game cd ~/.cannonball && exec /usr/lib/cannonball/cannonball "$@" |