summaryrefslogtreecommitdiff
path: root/extra/foobillard++
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-06 23:14:57 +0000
committerroot <root@rshg054.dnsready.net>2012-01-06 23:14:57 +0000
commitd7931e8fa49a4698ac8dbb1a155ca6b48f031828 (patch)
tree281739e3992b9ac2dbb722ea6f84d1015fe1a365 /extra/foobillard++
parent817e58c278cb8ebee7743205877d0f67c431fcec (diff)
Fri Jan 6 23:14:57 UTC 2012
Diffstat (limited to 'extra/foobillard++')
-rw-r--r--extra/foobillard++/PKGBUILD34
1 files changed, 18 insertions, 16 deletions
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 <eric@archlinux.org>
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
}