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

_builddir=$srcdir/$pkgname-$pkgver

prepare() {
        local i
        cd "$_builddir"
        for i in $source; do
                case $i in
                *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
                esac
        done
	# fix eglibc-2.16 build issue
	sed -i -e '/gets is a/d' \
		lib/stdio.in.h || return 1
}

build() {
	cd "$_builddir"

	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

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

md5sums="99180208ec2a82ce71f55b0d7389f1b3  diffutils-3.3.tar.xz"
sha256sums="a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c  diffutils-3.3.tar.xz"
sha512sums="b04b998717e45e8fd1ba675957dad1909beeed68ffc41c0d9bbaddaf78965f9e63af5a8d8811bb94f33a3cddcad2fe1ad794e52e545def9ce96c092999a74a83  diffutils-3.3.tar.xz"