diff options
author | Gaming4JC <g4jc@openmailbox.org> | 2016-01-17 19:24:22 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@openmailbox.org> | 2016-01-17 19:24:22 -0500 |
commit | 28d31666f275d2b3e090c55909b66a48f6876705 (patch) | |
tree | 8cd890ce1d41623df8f89fb414cd7aaad8064cfd /pcr | |
parent | 8c95c88a82be70fdca6b5e7123c87c8a8dda1ff0 (diff) |
add wordwavi per Packaging request #918
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/wordwarvi/PKGBUILD | 46 | ||||
-rw-r--r-- | pcr/wordwarvi/wordwarvi.desktop | 11 | ||||
-rw-r--r-- | pcr/wordwarvi/wordwarvi.install | 11 |
3 files changed, 68 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 +} diff --git a/pcr/wordwarvi/wordwarvi.desktop b/pcr/wordwarvi/wordwarvi.desktop new file mode 100644 index 000000000..2fbed5a83 --- /dev/null +++ b/pcr/wordwarvi/wordwarvi.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Type=Application +Name=Word War Vi +Comment=A side-scrolling shoot 'em up '80s style arcade game +Exec=wordwarvi +Icon=wordwarvi +Categories=Game;Arcade; +Terminal=false +StartupNotify=false
\ No newline at end of file diff --git a/pcr/wordwarvi/wordwarvi.install b/pcr/wordwarvi/wordwarvi.install new file mode 100644 index 000000000..013aa1f5f --- /dev/null +++ b/pcr/wordwarvi/wordwarvi.install @@ -0,0 +1,11 @@ +post_install() { + gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +}
\ No newline at end of file |