[arch-commits] Commit in xbl/trunk (PKGBUILD)
Eric Bélanger
eric at archlinux.org
Tue Apr 21 20:44:55 UTC 2009
Date: Tuesday, April 21, 2009 @ 16:44:54
Author: eric
Revision: 36368
upgpkg: xbl 1.1.5-1
Upstream update, Added license, Added imake makedepends, FHS man pages, PKGBUILD clean-up
Modified:
xbl/trunk/PKGBUILD
----------+
PKGBUILD | 45 ++++++++++++++-------------------------------
1 file changed, 14 insertions(+), 31 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-04-21 16:57:48 UTC (rev 36367)
+++ PKGBUILD 2009-04-21 20:44:54 UTC (rev 36368)
@@ -1,44 +1,27 @@
# $Id$
-# Maintainer: eric <eric at archlinux.org>
# Contributor: Damir Perisa <damir.perisa at bluewin.ch>
pkgname=xbl
-pkgver=1.1.3
+pkgver=1.1.5
pkgrel=1
pkgdesc="A 3D tetris/blockout game"
arch=('i686' 'x86_64')
url="http://www710.univ-lyon1.fr/ftp/xbl/xbl.html"
-license=('custom: GPL1')
+license=('GPL')
depends=('libxext')
+makedepends=('imake')
source=(http://www710.univ-lyon1.fr/~exco/XBL/$pkgname-$pkgver.tar.gz)
-md5sums=('2fcada6f23e1f4bb3c4a33481bfefb80')
+md5sums=('f618cb6fc20314683c20679d063e1b37')
build() {
- # obtain GID of 'users' group, otherwise baal
- #
- gid=`/bin/grep users /etc/group | /bin/awk -F : '{ print $3 }'`
- if [ ! $gid ]; then
- /bin/echo "==> ERROR: unable to determine GID of 'users' group"
- return 1
- fi
-
- cd $startdir/src/$pkgname-$pkgver
- ./configure
- /usr/bin/make || return 1
- /bin/mkdir -p $startdir/pkg/usr/bin
- /bin/mkdir -p $startdir/pkg/usr/lib/xbl
- /bin/mkdir -p $startdir/pkg/usr/lib/X11/app-defaults
- /bin/mkdir -p $startdir/pkg/usr/man/man1
-
- /usr/bin/yes "" | /usr/bin/make BINDIR=$startdir/pkg/usr/bin \
- GROUP_GID=$gid LIBDIR=$startdir/pkg/usr/lib \
- RESOURCEDIR=$startdir/pkg/usr/lib/X11/app-defaults \
- SCOREDIR=$startdir/pkg/usr/lib/xbl \
- MANPATH=$startdir/pkg/usr/man install
-
- /bin/chgrp -R users $startdir/pkg/usr/lib/xbl
-
-install -Dm644 $srcdir/$pkgname-$pkgver/COPYING \
- $pkgdir/usr/share/licenses/$pkgname/COPYING
+ cd $srcdir/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+ install -d $pkgdir/usr/bin $pkgdir/usr/lib/{xbl,X11/app-defaults}
+ install -d $pkgdir/usr/share/man/man1
+ yes "" | make BINDIR=$pkgdir/usr/bin \
+ GROUP_GID=50 LIBDIR=$pkgdir/usr/lib \
+ RESOURCEDIR=$pkgdir/usr/lib/X11/app-defaults \
+ SCOREDIR=$pkgdir/usr/lib/xbl \
+ MANPATH=$pkgdir/usr/share/man install || return 1
}
-# vim: ts=2 sw=2 et ft=sh
More information about the arch-commits
mailing list