summaryrefslogtreecommitdiff
path: root/pcr/wordwarvi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/wordwarvi/PKGBUILD')
-rw-r--r--pcr/wordwarvi/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/pcr/wordwarvi/PKGBUILD b/pcr/wordwarvi/PKGBUILD
new file mode 100644
index 000000000..b3e78471d
--- /dev/null
+++ b/pcr/wordwarvi/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697
+# (Arch) Maintainer: Steffen Weber <-boenki-gmx-de->
+# (Arch) Contributor: Anton Bazhenov <anton.bazhenov at gmail>
+# (Arch) Contributor: Christopher Rogers <slaxemulator@gmail.com>
+# (Arch) Contributor: J. W. Birdsong <jwbirdsong AT gmail DOT com>
+
+pkgname=wordwarvi
+pkgver=1.00
+pkgrel=2
+pkgdesc="Side-scrolling shoot 'em up '80s style arcade game"
+arch=('i686' 'x86_64')
+url="http://$pkgname.sourceforge.net"
+license=('GPL2' 'custom')
+depends=('gtk2' 'portaudio')
+install=$pkgname.install
+source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ $pkgname.desktop
+ $pkgname.install)
+sha512sums=('e8f8609300fa2f9bd2ff763fee11699c5f30e96ccb3a5d531456134e983148227bb12fb6421b4ad00bcac46cddcdb5a036d416b8e55aedf037d1c3f0b5e04fa9'
+ 'cf586621b1391dbd6d57c02f00e76bb1b60773e151069b6741a1883ab36c0407baf2a517455c4a0ce7750a679227d3b8ec2e11f8d8d08a9cf9dcc0fc42175cd5'
+ 'c5690d68ef92d7ecf1b20b12c75ae3a2d8b6ee0fb4000a5c447e37daf0bf2c31feaa53cc3e4d6853a755c3fa4998062651ca5791249ca91df800d93c0657efdc')
+
+prepare() {
+ cd $pkgname-$pkgver
+ sed -i "s,sounds/,/usr/share/$pkgname/sounds/," $pkgname.c
+}
+
+build() {
+ cd $pkgname-$pkgver
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 sounds/Attribution.txt $pkgdir/usr/share/licenses/$pkgname/COPYING_SOUNDS
+ install -Dm644 ../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
+ install -Dm644 icons/wordwarvi_icon_48x48.png $pkgdir/usr/share/pixmaps/$pkgname.png
+
+ for _width in '16' '22' '32' '48' '64' '128'; do
+ install -Dm644 icons/${pkgname}_icon_${_width}x${_width}.png \
+ $pkgdir/usr/share/icons/hicolor/${_width}x${_width}/apps/$pkgname.png
+ done
+}