aboutsummaryrefslogtreecommitdiffstats
path: root/main/diffutils/APKBUILD
blob: 48ad61ec1ec62e96746244b0017f09bf3749a188 (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: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=diffutils
pkgver=3.4
pkgrel=0
pkgdesc="Show differences among files"
subpackages="$pkgname-doc"
url="http://www.gnu.org/software/diffutils/"
arch="all"
license="GPL3+"
depends=""
makedepends=""
install=""
source="http://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz"

builddir=$srcdir/$pkgname-$pkgver
prepare() {
	cd "$builddir"
	default_prepare || return 1

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

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

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

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

md5sums="df9ca465f30307cffd03da176a43a5d4  diffutils-3.4.tar.xz"
sha256sums="db53c025f2ac3d217bcf753dad6dee7b410b33d0948495ff015aaf8b91189ce2  diffutils-3.4.tar.xz"
sha512sums="0fc273007e35e67e217116e776956c6a24421f298d3e6fe60aa1d4250938a65bb8e685cd815517317b5637f5c412c1550d7c1994a9e0283ebbcae9bde24a260d  diffutils-3.4.tar.xz"