APKBUILD 1.03 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_rc7
4
pkgrel=0
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
	"
Natanael Copa's avatar
Natanael Copa committed
11

12

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

build() {
17
	cd "$srcdir/$pkgname-$pkgver"
18
	sed -i -e 's:-Werror::' Make.rules
19 20 21 22
	for i in ../*.patch; do
		[ -f $i ] || continue
		patch -p1 -i $i || return 1
	done
23

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

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

43
md5sums="8654e4e4e32ead79560890567caaea5e  apk-tools-2.0_rc7.tar.bz2"