summaryrefslogtreecommitdiff
path: root/pcr/tong/PKGBUILD
blob: bd39bf284e99cf514069b8a38fe9a97f6a226dff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
}