summaryrefslogtreecommitdiffstats
path: root/abs/core/findutils/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 02:19:06 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 02:19:06 (GMT)
commitf027d354d091d501dc17305cb747901453232918 (patch)
tree7a677c6e91e2686d841f83d9773d113359392dec /abs/core/findutils/PKGBUILD
parent490855ac8ed4ab7c1d97866a96711850899ca36d (diff)
downloadlinhes_pkgbuild-f027d354d091d501dc17305cb747901453232918.zip
linhes_pkgbuild-f027d354d091d501dc17305cb747901453232918.tar.gz
linhes_pkgbuild-f027d354d091d501dc17305cb747901453232918.tar.bz2
findutils: 4.42
Diffstat (limited to 'abs/core/findutils/PKGBUILD')
-rw-r--r--abs/core/findutils/PKGBUILD32
1 files changed, 18 insertions, 14 deletions
diff --git a/abs/core/findutils/PKGBUILD b/abs/core/findutils/PKGBUILD
index 420a885..e8d3d8c 100644
--- a/abs/core/findutils/PKGBUILD
+++ b/abs/core/findutils/PKGBUILD
@@ -1,32 +1,36 @@
-# $Id: PKGBUILD 77807 2010-04-18 04:29:16Z allan $
-# Maintainer:
+# $Id: PKGBUILD 142108 2011-11-05 10:13:34Z tpowa $
+# Maintainer:
pkgname=findutils
pkgver=4.4.2
-pkgrel=2
+pkgrel=4
pkgdesc="GNU utilities to locate files"
arch=('i686' 'x86_64')
license=('GPL3')
groups=('base')
depends=('glibc' 'sh')
url="http://www.gnu.org/software/findutils"
-source=(ftp://ftp.gnu.org/pub/gnu/findutils/findutils-$pkgver.tar.gz)
+source=(ftp://ftp.gnu.org/pub/gnu/findutils/${pkgname}-${pkgver}.tar.gz)
install=findutils.install
-md5sums=('351cc4adb07d54877fa15f75fb77d39f')
+sha1sums=('e8dd88fa2cc58abffd0bfc1eddab9020231bb024')
build() {
- cd $srcdir/$pkgname-$pkgver
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # Don't build or install locate because we use mlocate,
+ # which is a secure version of locate.
+ sed -i '/^SUBDIRS/s/locate//' Makefile.in
+
./configure --prefix=/usr
- make || return 1
+ make
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make check
}
package() {
- cd $srcdir/$pkgname-$pkgver
+ cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR=$pkgdir install
- rm -rf $pkgdir/usr/{libexec,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
}