diff options
author | Yannick Le Guen | 2015-06-08 17:43:14 +0200 |
---|---|---|
committer | Yannick Le Guen | 2015-06-08 17:43:14 +0200 |
commit | 0670fc8fd1b42c84b5e9fcb90d9a20abd6b4f601 (patch) | |
tree | 92311dc3eb772e94e2192f2257cc5bbdec5891c1 | |
download | aur-0670fc8fd1b42c84b5e9fcb90d9a20abd6b4f601.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 39 | ||||
-rw-r--r-- | tong.desktop | 9 | ||||
-rw-r--r-- | tong.install | 11 |
4 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..67ca6c832e3c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = tong + pkgdesc = Tetris meets Pong, with more twists than a contortionist club's secret handshake + pkgver = 1.3 + pkgrel = 2 + url = http://www.nongnu.org/tong/ + install = tong.install + arch = i686 + arch = x86_64 + license = GPL3 + depends = sdl_image + depends = sdl_mixer + source = http://www.nongnu.org/tong/tong-1.3.tar.gz + source = tong.desktop + md5sums = a9d70c7b2f637e9d95e6fbdf6d22782d + md5sums = 90695390ee1c4fd907a00beedb1e651d + +pkgname = tong + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7eaeef4c8082 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Spike29 <leguen.yannick@gmail.com> +# Contributor: Petr Malat <petris@penguin.cz> + +pkgname='tong' +pkgver='1.3' +pkgrel='2' +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') +install="$pkgname.install" +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/tong.desktop b/tong.desktop new file mode 100644 index 000000000000..f0869e74adc3 --- /dev/null +++ b/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; diff --git a/tong.install b/tong.install new file mode 100644 index 000000000000..e111ef946053 --- /dev/null +++ b/tong.install @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |