diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-09-11 21:40:53 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-09-11 21:40:53 -0300 |
commit | d6a2203ccc35b69209026fb749a9979eb110c4f8 (patch) | |
tree | c1b3681f596363ac1c972ef7fe3e9aa02d6a61cb | |
parent | 15398eba8ea09262b69a2bc87391cb394ee31ca5 (diff) | |
download | abslibre-d6a2203ccc35b69209026fb749a9979eb110c4f8.tar.gz abslibre-d6a2203ccc35b69209026fb749a9979eb110c4f8.tar.bz2 abslibre-d6a2203ccc35b69209026fb749a9979eb110c4f8.zip |
mrrescue: add new package to [pcr]
-rw-r--r-- | pcr/mrrescue/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pcr/mrrescue/PKGBUILD b/pcr/mrrescue/PKGBUILD new file mode 100644 index 000000000..427ab22b7 --- /dev/null +++ b/pcr/mrrescue/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer (Arch): Ainola +# Contributors (Arch): Pio, carstene1ns, MCMic + +pkgname=mrrescue +pkgver=1.02e +pkgrel=1 +pkgdesc="An arcade styled 2d action game centered around evacuating civilians from burning buildings." +arch=('any') +url="http://tangramgames.dk/games/mrrescue/" +license=('CCPL:by-sa' 'zlib') +depends=('love') +makedepends=('gendesk') +source=("https://github.com/SimonLarsen/mrrescue/releases/download/$pkgver/$pkgname$pkgver.love") +md5sums=('08f236a0f296f70fafa67be2ef20e254') + +prepare() { + cd $srcdir + # Generate desktop file + gendesk -f -n --name "Mr. Rescue" --pkgname "$pkgname" --pkgdesc "$pkgdesc" + # Generate run script + echo -e "#!/bin/sh\nexec love /usr/share/$pkgname/$pkgname-$pkgver.love" > $pkgname.sh +} + +package() { + # Copy game and license + install -Dm0644 "$pkgname$pkgver.love" "$pkgdir"/usr/share/$pkgname/$pkgname-$pkgver.love + install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + # Copy desktop file, icon and run script + install -Dm0644 $pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop + install -Dm0644 data/splash.png "$pkgdir"/usr/share/pixmaps/$pkgname.png + install -Dm0755 $pkgname.sh "$pkgdir"/usr/bin/$pkgname +} |