diff options
-rw-r--r-- | pcr/tong/PKGBUILD | 38 | ||||
-rw-r--r-- | pcr/tong/tong.desktop | 9 |
2 files changed, 47 insertions, 0 deletions
diff --git a/pcr/tong/PKGBUILD b/pcr/tong/PKGBUILD new file mode 100644 index 000000000..bd39bf284 --- /dev/null +++ b/pcr/tong/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Spike29 <leguen.yannick@gmail.com> +# Contributor: Petr Malat <petris@penguin.cz> + +pkgname='tong' +pkgver='1.3' +pkgrel='4' +pkgdesc="Tetris meets Pong, with more twists than a contortionist club's secret handshake" +arch=('i686' 'x86_64') +url="http://www.nongnu.org/tong/" +license=('GPL3') +depends=('sdl_image' 'sdl_mixer') +source=("http://www.nongnu.org/tong/$pkgname-$pkgver.tar.gz" + "$pkgname.desktop") +md5sums=('a9d70c7b2f637e9d95e6fbdf6d22782d' + '90695390ee1c4fd907a00beedb1e651d') + +build() { + cd $srcdir/$pkgname + make GAME_DATA_DIR=/usr/share/$pkgname +} + +package() { + mkdir -p $pkgdir/usr/share/$pkgname + + #copy files and binary on appropriate destinations + cd $srcdir/$pkgname + cp -r media $pkgdir/usr/share/$pkgname/ + install -m644 CREDITS $pkgdir/usr/share/$pkgname/CREDITS + install -Dm644 README $pkgdir/usr/share/doc/$pkgname/README + install -Dm755 $pkgname $pkgdir/usr/bin/$pkgname + + #remove unneeded folders + rm -r $pkgdir/usr/share/$pkgname/media/{gp2x,wii} + + #install a desktop entry + install -Dm644 media/icon.png $pkgdir/usr/share/pixmaps/$pkgname.png + install -Dm644 ../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop +} diff --git a/pcr/tong/tong.desktop b/pcr/tong/tong.desktop new file mode 100644 index 000000000..f0869e74a --- /dev/null +++ b/pcr/tong/tong.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Tong +Comment=Tetris meets Pong, with more twists than a contortionist club's secret handshake +Exec=/usr/bin/tong +Icon=/usr/share/pixmaps/tong.png +Terminal=false +Type=Application +StartupNotify=true +Categories=Game;ArcadeGame; |