summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abs/core/findutils/PKGBUILD38
-rw-r--r--abs/core/findutils/findutils.install22
2 files changed, 42 insertions, 18 deletions
diff --git a/abs/core/findutils/PKGBUILD b/abs/core/findutils/PKGBUILD
index 0027aca..420a885 100644
--- a/abs/core/findutils/PKGBUILD
+++ b/abs/core/findutils/PKGBUILD
@@ -1,30 +1,32 @@
-# $Id: PKGBUILD 2673 2008-06-11 02:45:30Z eric $
-# Maintainer: judd <jvinet@zeroflux.org>
+# $Id: PKGBUILD 77807 2010-04-18 04:29:16Z allan $
+# Maintainer:
+
pkgname=findutils
-pkgver=4.4.0
-pkgrel=10
+pkgver=4.4.2
+pkgrel=2
pkgdesc="GNU utilities to locate files"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
license=('GPL3')
groups=('base')
-depends=('glibc>=2.8')
+depends=('glibc' 'sh')
url="http://www.gnu.org/software/findutils"
source=(ftp://ftp.gnu.org/pub/gnu/findutils/findutils-$pkgver.tar.gz)
-md5sums=('49e769ac4382fae6f104f99d54d0a112')
+install=findutils.install
+md5sums=('351cc4adb07d54877fa15f75fb77d39f')
build() {
- cd $startdir/src/$pkgname-$pkgver
+ cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
- # believe it or not, the Makefile really wants to remove /usr/var, so
- # we let it...
- mkdir -p $startdir/pkg/usr/var
- make DESTDIR=$startdir/pkg install
- rm -rf $startdir/pkg/usr/libexec
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make DESTDIR=$pkgdir install
+ rm -rf $pkgdir/usr/{libexec,var}
- # remove locate utils (we use slocate instead)
- rm -f $startdir/pkg/usr/bin/{locate,updatedb}
- rm -f $startdir/pkg/usr/share/man/man1/{updatedb.1,locate.1}
- rm -f $startdir/pkg/usr/share/man/man5/locatedb.5
- rmdir $startdir/pkg/usr/var
+ # remove locate utils (we use mlocate instead)
+ rm -f $pkgdir/usr/bin/{locate,updatedb}
+ rm -f $pkgdir/usr/share/man/man1/{updatedb.1,locate.1}
+ rm -f $pkgdir/usr/share/man/man5/locatedb.5
}
diff --git a/abs/core/findutils/findutils.install b/abs/core/findutils/findutils.install
new file mode 100644
index 0000000..e42d782
--- /dev/null
+++ b/abs/core/findutils/findutils.install
@@ -0,0 +1,22 @@
+infodir=/usr/share/info
+filelist=(find-maint.info find.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+# vim:set ts=2 sw=2 et: