APKBUILD 1.19 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_rc5
4
pkgrel=1
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
	0001-version-index-output-to-stdout-instead-of-stderr.patch
11
	"
Natanael Copa's avatar
Natanael Copa committed
12

13

14
url="http://git.alpinelinux.org/cgit/apk-tools/"
15
license=GPL-2
Natanael Copa's avatar
Natanael Copa committed
16 17

build() {
18
	cd "$srcdir/$pkgname-$pkgver"
19
	sed -i -e 's:-Werror::' Make.rules
20
	patch -p1 -i ../0001-version-index-output-to-stdout-instead-of-stderr.patch || return 1
21

22
	make || return 1
23
	make static || return 1
24 25 26 27 28 29 30 31
	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
32
	install -d "$pkgdir"/var/lib/apk "$pkgdir"/var/cache/misc
Natanael Copa's avatar
Natanael Copa committed
33 34
}

35 36 37 38 39 40
static() {
	pkgdesc="Alpine Package Keeper - static binary"
	install -Dm755 "$srcdir"/$pkgname-$pkgver/src/apk.static \
		"$subpkgdir"/sbin/apk.static
}

41 42
md5sums="0d7507305586e2f4bcc4884cf6684977  apk-tools-2.0_rc5.tar.bz2
5fafd1581c7d2bce26fc9531f4a128e7  0001-version-index-output-to-stdout-instead-of-stderr.patch"