New package: crack-attack-1.1.14

This commit is contained in:
Christian Neukirchen 2014-07-08 22:01:57 +02:00
parent 729f378f5d
commit d62e5c2bd3

View File

@ -0,0 +1,44 @@
# Template file for 'crack-attack'
pkgname=crack-attack
version=1.1.14
revision=1
wrksrc=$pkgname-$version
create_wrksrc=yes
build_wrksrc=$wrksrc
#only_for_archs="i686 x86_64"
build_style=gnu-configure
configure_args="--enable-sound=yes"
#make_build_args=""
#make_install_args=""
#conf_files=""
#make_dirs="/var/log/sa 0755 root root"
hostmakedepends="pkg-config rpmextract
gtk+-devel SDL_mixer-devel libfreeglut-devel libXmu-devel"
makedepends=""
depends=""
short_desc="Tetris Attack clone"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://www.nongnu.org/crack-attack/"
distfiles="http://kojipkgs.fedoraproject.org/packages/${pkgname}/${version}/28.fc21/src/${pkgname}-${version}-28.fc21.src.rpm"
checksum="6fb2ad5a1dcdc590fcbeb4d1925a7e55f1af27780a5550cded280475d2c08b1d"
post_extract() {
tar xf crack-attack-1.1.14.tar.bz2
tar xf crack-attack-music.tar.gz
tar xf crack-attack-sounds.tar.gz
cd $build_wrksrc
cat ../*.patch | patch -p1
}
post_install() {
vcopy ../music usr/share/${pkgname}
vcopy ../data/sounds usr/share/${pkgname}
vlicense ../music-sound-copyright.txt
vmkdir usr/share/applications
mv $DESTDIR/usr/share/${pkgname}/${pkgname}.desktop $DESTDIR/usr/share/applications/
vmkdir usr/share/pixmaps
cp $DESTDIR/usr/share/${pkgname}/crack-attack.xpm $DESTDIR/usr/share/pixmaps
}