void-packages/srcpkgs/foobillard++/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

33 lines
1.3 KiB
Bash

# Template file for 'foobillard'
pkgname=foobillard++
version=3.42beta
revision=1
wrksrc=foobillardplus-${version}
build_style=gnu-configure
homepage="http://foobillardplus.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/foobillardplus/foobillardplus-$version.tar.gz"
hostmakedepends="automake pkg-config"
makedepends="libICE-devel freetype-devel libpng-devel glu-devel SDL_mixer-devel SDL_net-devel"
depends="desktop-file-utils"
short_desc="An OpenGL billard game - fork of foobillard"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
checksum=e276b70674a7d788c45eeff89f1f5db5d48d871a1ab92103813d424a3761e1d9
pre_configure() {
autoreconf -fi
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() {
vbin src/foobillardplus
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 {} \;
}