diff options
author | root <root@rshg054.dnsready.net> | 2011-11-03 23:14:47 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-11-03 23:14:47 +0000 |
commit | b625511a28fd8401f524474b5339e75328595150 (patch) | |
tree | 1daf0e94a58707bedb1a8ef5c3e98ce2cc9d7fa2 /testing/findutils | |
parent | 6c10ff06abb7ca3a4db4c73624f73aafdd3b2e63 (diff) |
Thu Nov 3 23:14:47 UTC 2011
Diffstat (limited to 'testing/findutils')
-rw-r--r-- | testing/findutils/PKGBUILD | 36 | ||||
-rw-r--r-- | testing/findutils/findutils.install | 22 |
2 files changed, 58 insertions, 0 deletions
diff --git a/testing/findutils/PKGBUILD b/testing/findutils/PKGBUILD new file mode 100644 index 000000000..5ba781519 --- /dev/null +++ b/testing/findutils/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 141714 2011-11-02 12:52:59Z tpowa $ +# Maintainer: + +pkgname=findutils +pkgver=4.4.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/${pkgname}-${pkgver}.tar.gz) +install=findutils.install +sha1sums=('e8dd88fa2cc58abffd0bfc1eddab9020231bb024') + +build() { + 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 +} + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + make check +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR=$pkgdir install +} diff --git a/testing/findutils/findutils.install b/testing/findutils/findutils.install new file mode 100644 index 000000000..e42d782e2 --- /dev/null +++ b/testing/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: |