APKBUILD 1.62 KB
Newer Older
1 2 3 4
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=findutils
pkgver=4.4.2
5
pkgrel=3
6 7
pkgdesc="GNU utilities for finding files"
url="http://www.gnu.org/software/findutils/"
8
arch="all"
9 10 11 12 13
license="GPL"
depends=""
makedepends=""
install=
subpackages="$pkgname-doc"
Timo Teräs's avatar
Timo Teräs committed
14 15 16
source="http://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz
	fix-gnulib-freadahead.patch
	"
17

18
_builddir="$srcdir"/findutils-$pkgver
19 20 21 22

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
Timo Teräs's avatar
Timo Teräs committed
23 24 25 26 27
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
28
}
Timo Teräs's avatar
Timo Teräs committed
29

30
build() {
31
	cd "$_builddir"
32

33 34 35 36
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
37
		--sysconfdir=/etc \
38
		--localstatedir=/var \
39
		--mandir=/usr/share/man \
40 41
		--infodir=/usr/share/info \
		|| return 1
42
	make || return 1
43
}
44

45 46 47
package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
Timo Teräs's avatar
Timo Teräs committed
48 49 50
	rm -rf "$pkgdir"/usr/lib/charset.alias
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null
	return 0
51 52
}

Timo Teräs's avatar
Timo Teräs committed
53 54 55 56 57 58
md5sums="351cc4adb07d54877fa15f75fb77d39f  findutils-4.4.2.tar.gz
151400410daf15fa87944a9d51460918  fix-gnulib-freadahead.patch"
sha256sums="434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd702b62a  findutils-4.4.2.tar.gz
1ed50d784a1c1a8603f47449e8fc3c95bd39ff827a8ec8fed0ecd07330fe8844  fix-gnulib-freadahead.patch"
sha512sums="262d0a8301158e6541b9f24e4e043d8d8c1b196b18dbe59c3bedcf17b50c95708e33ab23a07e3bfb947ad495faafffdca3c296fb525794ca60f2dfd682f228c1  findutils-4.4.2.tar.gz
8ed8a28ff35a30a8e07af17ca5dea1c3ad12d81bccb6dffe6727a6dd4d47943c401e26433e793ee0ea249a1a1fdd67ea8a8573f6914c636dbfb56dd5dce6884e  fix-gnulib-freadahead.patch"