### this file is sourced not run
PKGVER=1.3.6
PKGBUILD=1
PKGARCH=x86_64

# source: 01micko (01micko.com)
TARBALL=xinvaders3d-1.3.6.src.tar.gz
MD5SUM=59fc645f21cf1859b6792131c07caa96
SRC_URL=http://download.sourceforge.net/xinvaders3d/$TARBALL
BUNDLE=

SLACKREQ='libX11'
SLACKDESC='xinvaders3d: xinvaders3d (space invaders clone)
xinvaders3d:
xinvaders3d: xinvaders3d is a vector graphics space shooter much like the classic
xinvaders3d: space invaders.
xinvaders3d: 
xinvaders3d:
xinvaders3d:
xinvaders3d: Homepage: http://xinvaders3d.sourceforge.net/
xinvaders3d:
xinvaders3d:
xinvaders3d:'

### default pkg_download
### default pkg_prepare

### package
pkg_package() {
	mkdir -p usr/share/applications usr/share/pixmaps
	cp $CHROOT_DIR/tmp/pkg/xinv3d.png usr/share/pixmaps
	cat << "EOF" > usr/share/applications/xinvaders3d.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Xinvaders 3D
Icon=xinv3d
Comment=Space game
Exec=xinv3d
Terminal=false
Type=Application
Categories=Game;
GenericName=Xinvaders 3D Game
EOF
}

### build
pkg_build() {
	cd /tmp/xinvaders3d
	make &&
	cp -a ./xinv3d /usr/bin/ &&
	pkg_build_slackdesc
}	
