summaryrefslogtreecommitdiffstats
path: root/abs/core/findutils/PKGBUILD
blob: 420a8856c31de84859e90b7f351f88cd8fd96fd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 77807 2010-04-18 04:29:16Z allan $
# Maintainer: 

pkgname=findutils
pkgver=4.4.2
pkgrel=2
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)
install=findutils.install
md5sums=('351cc4adb07d54877fa15f75fb77d39f')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
}

package() {
  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
}