2011-11-03 23:18:24 +01:00
|
|
|
# Template file for 'foobillard'
|
|
|
|
pkgname=foobillard++
|
2014-11-24 09:46:15 +01:00
|
|
|
version=3.42beta
|
|
|
|
revision=1
|
2011-11-03 23:18:24 +01:00
|
|
|
wrksrc=foobillardplus-${version}
|
2014-02-19 15:04:59 +01:00
|
|
|
build_style=gnu-configure
|
2011-11-03 23:18:24 +01:00
|
|
|
homepage="http://foobillardplus.sourceforge.net/"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/foobillardplus/foobillardplus-$version.tar.gz"
|
2014-11-24 09:46:15 +01:00
|
|
|
hostmakedepends="automake pkg-config"
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends="libICE-devel freetype-devel libpng-devel glu-devel SDL_mixer-devel SDL_net-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="desktop-file-utils"
|
2011-11-03 23:18:24 +01:00
|
|
|
short_desc="An OpenGL billard game - fork of foobillard"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-11-03 23:18:24 +01:00
|
|
|
license="GPL-2"
|
2014-11-24 09:46:15 +01:00
|
|
|
checksum=e276b70674a7d788c45eeff89f1f5db5d48d871a1ab92103813d424a3761e1d9
|
2011-11-03 23:18:24 +01:00
|
|
|
|
2014-02-19 15:04:59 +01:00
|
|
|
pre_configure() {
|
2014-11-24 09:46:15 +01:00
|
|
|
autoreconf -fi
|
2011-11-03 23:18:24 +01:00
|
|
|
sed -i 's|$prefix/foobillardplus|$prefix|' configure
|
|
|
|
sed -i 's|$prefix/data|$prefix/share/foobillardplus|' configure
|
|
|
|
sed -i 's|"/data"|"/share/foobillardplus"|' src/language.c
|
|
|
|
sed -i 's|/opt/foobillardplus/bin/||' foobillardplus.desktop
|
|
|
|
sed -i 's|/opt/foobillardplus/||' foobillardplus.desktop
|
|
|
|
}
|
|
|
|
do_install() {
|
2014-11-24 09:46:15 +01:00
|
|
|
vbin src/foobillardplus
|
2011-11-03 23:18:24 +01:00
|
|
|
vmkdir usr/share/foobillardplus
|
|
|
|
vcopy "data/*" usr/share/foobillardplus
|
|
|
|
vinstall foobillardplus.desktop 644 usr/share/applications
|
|
|
|
vinstall foobillardplus.png 644 usr/share/pixmaps
|
|
|
|
vinstall foobillardplus.xbm 644 usr/share/pixmaps
|
|
|
|
find ${DESTDIR} -depth -type d -name .svn -exec rm -rf {} \;
|
|
|
|
}
|