APKBUILD 1.8 KB
Newer Older
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Natanael Copa's avatar
Natanael Copa committed
2
pkgname=apk-tools
3
pkgver=2.0.2
4
pkgrel=6
5
pkgdesc="Alpine Package Keeper - package manager for alpine"
6
subpackages="$pkgname-static"
7
depends=
8
makedepends="zlib-dev openssl-dev pkgconfig"
Natanael Copa's avatar
Natanael Copa committed
9
source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2
10 11 12 13 14
	0001-info-fix-querying-of-removed-but-referenced-packages.patch
	0002-upgrade-reset-versioned-deps-in-world-when-doing-upg.patch
	0003-search-add-search-for-reverse-dependencies-in-index.patch
	0004-package-don-t-leak-signing-key-file-fd.patch
	0005-cache-display-more-than-one-error.patch
15
	"
Natanael Copa's avatar
Natanael Copa committed
16

17

18
url="http://git.alpinelinux.org/cgit/apk-tools/"
19
license=GPL-2
Natanael Copa's avatar
Natanael Copa committed
20

21
prepare() {
22
	cd "$srcdir/$pkgname-$pkgver"
23
	sed -i -e 's:-Werror::' Make.rules
24 25 26 27
	for i in ../*.patch; do
		[ -f $i ] || continue
		patch -p1 -i $i || return 1
	done
28
}
29

30 31
build() {
	cd "$srcdir/$pkgname-$pkgver"
32
	make || return 1
33
	make static || return 1
34 35 36 37 38 39 40 41
	make DESTDIR="$pkgdir" install
	cd "$pkgdir/sbin"
	ln -s apk apk_add
	ln -s apk apk_audit
	ln -s apk apk_del
	ln -s apk apk_index
	ln -s apk apk_info
	ln -s apk apk_version
42
	install -d "$pkgdir"/var/lib/apk "$pkgdir"/var/cache/misc
Natanael Copa's avatar
Natanael Copa committed
43 44
}

45 46 47 48 49 50
static() {
	pkgdesc="Alpine Package Keeper - static binary"
	install -Dm755 "$srcdir"/$pkgname-$pkgver/src/apk.static \
		"$subpkgdir"/sbin/apk.static
}

51
md5sums="c87cb88f90eb8d7021d37e3b5386863d  apk-tools-2.0.2.tar.bz2
52 53 54 55 56
c590e894c2580cbb092b150fca9af3cf  0001-info-fix-querying-of-removed-but-referenced-packages.patch
5c53eaa29dd9722c25b6878cde392d05  0002-upgrade-reset-versioned-deps-in-world-when-doing-upg.patch
6baca299fbf00b97f78fa8fbd0e82f5b  0003-search-add-search-for-reverse-dependencies-in-index.patch
175470e6d5b2d20fe02d6fb61f8ec6d1  0004-package-don-t-leak-signing-key-file-fd.patch
0ab64b75b09f37b4d265df3f7b5b7e83  0005-cache-display-more-than-one-error.patch"