APKBUILD 913 Bytes
Newer Older
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Natanael Copa's avatar
Natanael Copa committed
2
pkgname=apk-tools
3
pkgver=2.0_rc3
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
	make || return 1
21
	make static || return 1
22 23 24 25 26 27 28 29
	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
Natanael Copa's avatar
Natanael Copa committed
30 31
}

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

38
md5sums="64cc6fac209ad85b1dade7f796d8f842  apk-tools-2.0_rc3.tar.bz2"