2014-07-08 22:01:57 +02:00
|
|
|
# Template file for 'crack-attack'
|
|
|
|
pkgname=crack-attack
|
|
|
|
version=1.1.14
|
2015-05-11 13:22:51 +02:00
|
|
|
revision=6
|
2014-07-09 16:27:49 +02:00
|
|
|
wrksrc=$pkgname-$version
|
|
|
|
create_wrksrc=yes
|
|
|
|
build_wrksrc=$wrksrc
|
2014-07-08 22:01:57 +02:00
|
|
|
build_style=gnu-configure
|
2014-07-09 09:44:01 +02:00
|
|
|
configure_args="--enable-sound=yes ac_cv_file__proc_self_maps=yes"
|
2014-07-09 16:27:49 +02:00
|
|
|
hostmakedepends="pkg-config rpmextract"
|
|
|
|
makedepends="gtk+-devel SDL_mixer-devel libfreeglut-devel glu-devel
|
|
|
|
libXmu-devel libXi-devel"
|
2014-07-09 09:36:25 +02:00
|
|
|
depends="desktop-file-utils"
|
2014-07-08 22:01:57 +02:00
|
|
|
short_desc="Tetris Attack clone"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
2014-07-09 16:27:49 +02:00
|
|
|
license="GPL-2,custom"
|
2014-07-08 22:01:57 +02:00
|
|
|
homepage="http://www.nongnu.org/crack-attack/"
|
2014-07-09 16:27:49 +02:00
|
|
|
distfiles="http://kojipkgs.fedoraproject.org/packages/${pkgname}/${version}/28.fc21/src/${pkgname}-${version}-28.fc21.src.rpm"
|
|
|
|
checksum="6fb2ad5a1dcdc590fcbeb4d1925a7e55f1af27780a5550cded280475d2c08b1d"
|
|
|
|
|
|
|
|
post_extract() {
|
2014-11-23 15:43:35 +01:00
|
|
|
tar xf crack-attack-${version}.tar.bz2
|
|
|
|
tar xf crack-attack-music.tar.gz
|
|
|
|
tar xf crack-attack-sounds.tar.gz
|
2014-07-09 16:27:49 +02:00
|
|
|
|
2014-11-23 15:43:35 +01:00
|
|
|
cd $build_wrksrc
|
|
|
|
cat ../*.patch | patch -p1
|
2014-07-09 16:27:49 +02:00
|
|
|
}
|
2014-07-08 22:01:57 +02:00
|
|
|
|
|
|
|
post_install() {
|
2014-11-23 15:43:35 +01:00
|
|
|
vcopy ../music usr/share/${pkgname}
|
|
|
|
vcopy ../data/sounds usr/share/${pkgname}
|
|
|
|
vlicense ../music-sound-copyright.txt
|
2014-07-09 16:27:49 +02:00
|
|
|
|
2014-11-23 15:43:35 +01:00
|
|
|
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
|
2014-07-08 22:01:57 +02:00
|
|
|
}
|