summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 590b5e2252322f14176251e5d1e6d16a0dc72d91 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=findutils-git
pkgver=4.9.0.r22.gfc47dade
pkgrel=1
pkgdesc="Basic directory searching utilities of the GNU operating system"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/findutils/"
license=('GPL3')
depends=('glibc' 'sh')
makedepends=('git' 'gettext')
checkdepends=('dejagnu')
provides=("findutils=$pkgver")
conflicts=('findutils')
source=("git+https://git.savannah.gnu.org/git/findutils.git")
sha256sums=('SKIP')


pkgver() {
  cd "findutils"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "findutils"

  ./bootstrap

  sed -i '/^SUBDIRS/s/locate//' Makefile.in
  ./configure \
    --prefix="/usr"

  # don't build locate, but the docs want a file in there.
  make -C locate dblocation.texi
  make
}

check() {
  cd "findutils"

  #make check
}

package() {
  cd "findutils"

  make DESTDIR="$pkgdir" install
}