summaryrefslogtreecommitdiff
path: root/system/diffutils/APKBUILD
blob: 65d7bfde84f5ae44ecbb2771122058e2dce6a697 (plain) (blame)
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
50
# Maintainer: 
pkgname=diffutils
pkgver=3.6
pkgrel=2
pkgdesc="Show differences among files"
subpackages="$pkgname-doc $pkgname-lang"
url="http://www.gnu.org/software/diffutils/"
arch="all"
license="GPL-3.0+"
source="http://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz
	disable-mbrtowc-test.patch
	gnulib-tests-dont-require-gpg-passphrase.patch
	"

prepare() {
	cd "$builddir"
	default_prepare

	# fix eglibc-2.16 build issue
	sed -i -e '/gets is a/d' \
		lib/stdio.in.h
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make install DESTDIR=$pkgdir

	rm -rf "$pkgdir"/usr/lib/charset.alias
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true
}

sha512sums="3c159ff1cb7c901b0a57518483566b5740ca3c45aeb8d3004089f052975481db52994cc18592c502c68b0d2a1e22f1f7830f0d8dd9a9ed86de96e28cce9f70c1  diffutils-3.6.tar.xz
2602dabf0ac52a273b84160032416613da7ad111541fe25466cf9d4ce1eb2630f0ba0cb0b3013967965d8359a11a5f390f0486b4526b35516d9de1c8975f720d  disable-mbrtowc-test.patch
d45ab939e70b8b6e80d8950a8436be81e34e1067741196229edc7fbe33db92aa14532cf7490379741e779ae2cfc6010bec22dda2b2a046a3bc9eb68b94a0ff11  gnulib-tests-dont-require-gpg-passphrase.patch"