From d7931e8fa49a4698ac8dbb1a155ca6b48f031828 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 6 Jan 2012 23:14:57 +0000 Subject: Fri Jan 6 23:14:57 UTC 2012 --- extra/foobillard++/PKGBUILD | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'extra/foobillard++') diff --git a/extra/foobillard++/PKGBUILD b/extra/foobillard++/PKGBUILD index bfc8d10b0..f5d664ee7 100644 --- a/extra/foobillard++/PKGBUILD +++ b/extra/foobillard++/PKGBUILD @@ -1,36 +1,38 @@ -# $Id: PKGBUILD 141931 2011-11-03 08:55:49Z eric $ +# $Id: PKGBUILD 146196 2012-01-05 21:53:59Z eric $ # Maintainer: Eric BĂ©langer pkgname=foobillard++ -pkgver=3.41beta -pkgrel=1 +pkgver=3.42beta +pkgrel=2 pkgdesc="An OpenGL billiard game" arch=('i686' 'x86_64') url="http://foobillardplus.sourceforge.net/" license=('GPL2') -depends=('bzip2' 'freetype2' 'libpng' 'mesa' 'sdl_net') +depends=('freetype2' 'libpng' 'mesa' 'sdl_net' 'sdl_mixer') replaces=('foobillard') source=(http://downloads.sourceforge.net/foobillardplus/foobillardplus-${pkgver}.tar.gz) -sha1sums=('41d6db473557386ffeacd98b9a2ee26198e42c6a') +sha1sums=('51507efab0f595cfff26149003faf669c0a42f32') build() { cd "${srcdir}/foobillardplus-${pkgver}" - 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 - ./configure --prefix=/usr + aclocal --force + autoconf -f + autoheader -f + automake -a -c -f + ./configure --prefix=/usr/share make } package() { cd "${srcdir}/foobillardplus-${pkgver}" - install -Dm755 src/foobillardplus "${pkgdir}/usr/bin/foobillardplus" - install -d "${pkgdir}/usr/share/foobillardplus" - cp -R data/* "${pkgdir}/usr/share/foobillardplus" - install -Dm644 foobillardplus.desktop "${pkgdir}/usr/share/applications/foobillardplus.desktop" - install -Dm644 foobillardplus.png "${pkgdir}/usr/share/pixmaps/foobillardplus.png" - install -Dm644 foobillardplus.xbm "${pkgdir}/usr/share/pixmaps/foobillardplus.xbm" - find "${pkgdir}" -depth -type d -name .svn -exec rm -rf {} \; + make DESTDIR="${pkgdir}" datadir="${pkgdir}/usr/share/foobillardplus/data" \ + prefix="${pkgdir}/usr/share" install + + install -d "${pkgdir}"/usr/{bin,share/{applications,pixmaps}} + mv "${pkgdir}"/usr/share/{AUTHORS,COPYING,ChangeLog,INSTALL,README,TODO} "${pkgdir}/usr/share/foobillardplus" + mv "${pkgdir}"/usr/share/foobillardplus.desktop "${pkgdir}"/usr/share/applications + mv "${pkgdir}"/usr/share/foobillardplus.{png,xbm} "${pkgdir}"/usr/share/pixmaps + ln -s /usr/share/foobillardplus/bin/foobillardplus "${pkgdir}"/usr/bin/foobillardplus } -- cgit v1.2.3-54-g00ecf