[arch-commits] Commit in foobillard++/trunk (PKGBUILD)
Eric Bélanger
eric at archlinux.org
Thu Jan 5 21:18:44 UTC 2012
Date: Thursday, January 5, 2012 @ 16:18:44
Author: eric
Revision: 146193
upgpkg: foobillard++ 3.42beta-1
Upstream update, Add sdl_mixer depends, Change installation location to make patching unnecessary
Modified:
foobillard++/trunk/PKGBUILD
----------+
PKGBUILD | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-01-05 20:11:27 UTC (rev 146192)
+++ PKGBUILD 2012-01-05 21:18:44 UTC (rev 146193)
@@ -2,35 +2,35 @@
# Maintainer: Eric Bélanger <eric at archlinux.org>
pkgname=foobillard++
-pkgver=3.41beta
+pkgver=3.42beta
pkgrel=1
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
}
More information about the arch-commits
mailing list