aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libtar/APKBUILD
blob: e92869b212dd757d0ac9727546cba6b04ba2a596 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=libtar
pkgver=1.2.20
pkgrel=0
pkgdesc="C library for manipulating POSIX tar files"
url="http://repo.or.cz/w/libtar.git"
arch="all"
license="BSD"
depends=""
depends_dev="zlib-dev"
makedepends="$depends_dev automake autoconf libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::http://repo.or.cz/w/libtar.git/snapshot/0907a9034eaf2a57e8e4a9439f793f3f05d446cd.tar.gz
	libtar-1.2.11-mem-deref.patch
	libtar-1.2.20-fix-resource-leaks.patch
	libtar-1.2.11-bz729009.patch
	libtar-1.2.11-missing-protos.patch
	libtar-1.2.20-no-static-buffer.patch"

_builddir="$srcdir"/libtar
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
}

build() {
	cd "$_builddir"
	autoreconf -ivf
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static \
		--disable-encap \
		--disable-epkg-install \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="863a457f6e19763c6c8f5108b85d24cc  libtar-1.2.20.tar.gz
46b80e57e35ac14b0122ed0608e76c0e  libtar-1.2.11-mem-deref.patch
784bee46d827e39435eadbdba4165a9d  libtar-1.2.20-fix-resource-leaks.patch
15b6aea663be015569331aaa1c198b42  libtar-1.2.11-bz729009.patch
8d3e423b2db39f044c87f662bbbf12ab  libtar-1.2.11-missing-protos.patch
01249bb7ea03a15c40547cafbb6afe47  libtar-1.2.20-no-static-buffer.patch"
sha256sums="d1b2660d0af735fed2d2a0c3369dda7bea7445a4b1ef2f2742b352b1e1eec5f8  libtar-1.2.20.tar.gz
1420e4ca7b54f19f6c1665fa768919671378ecdae5f085756031243ac939d984  libtar-1.2.11-mem-deref.patch
664cd4476890a5969c61c7cb47f2399c3b43fab2b449d3049651187ca558c932  libtar-1.2.20-fix-resource-leaks.patch
b202918e6842ce8c80e6ead70a3af6dd6f1be37d2623048bb82b6ad7ccc5fa17  libtar-1.2.11-bz729009.patch
83838ef1e49690f446c3732a8ac89cd72b47c65155a819b29dfddfd4f5ce8fc1  libtar-1.2.11-missing-protos.patch
c1d330b6663015211605bef1efc193cfe59075de6a55f9efd2a52842f0ad0d27  libtar-1.2.20-no-static-buffer.patch"
sha512sums="675011b996848ac730d2f3663550e5389fed2ffcb0f2a8ca7078caa3a29d24e7ecae41e59d257585828101a3b37fe9c83e64eb7b086f0e7275c18bb2fdca4621  libtar-1.2.20.tar.gz
e7179581b523dc209965244f384f80f7b6b2a37595c6363347e4ff1270f918c4e729341670994c1e7f9578403f18445a569c165ee62ce5f87e30dec983cadb08  libtar-1.2.11-mem-deref.patch
06f6df6b681dc49a2249be57e9507db33ad90f6797c9f35b9f38c9eafcc31164245b40d4eaf696f295fff477daaacd51833976132710c902c78d6fe84472667f  libtar-1.2.20-fix-resource-leaks.patch
12470f357e0df579cd8ef9bd09121e2d742754d56517c1d153036e1436155324268bc86145e504c56761571ac9df1be6d13448d7349a3a51a30e82c4c65e162f  libtar-1.2.11-bz729009.patch
8ac4eea5ed2aa7f3893b44468b33fc668f2b026bd55282179c0920ae18fbc197a850523eb12624524e599ae4b0380c7322b296d4952c5d263e8971459dace021  libtar-1.2.11-missing-protos.patch
f6db3c9dfb537fb583ef87f3a10105378d20d7950184c67e4af2f4a4edc7a38ed9229dc389300bc5554e1fc1cce8adbd947c2c56cea2a1a4a00a23fb92e18244  libtar-1.2.20-no-static-buffer.patch"