# Maintainer: Natanael Copa pkgname=apk-tools pkgver=2.0_rc3 pkgrel=0 pkgdesc="Alpine Package Keeper - package manager for alpine" subpackages="$pkgname-static" depends= makedepends="zlib-dev openssl-dev pkgconfig" source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 " url="http://git.alpinelinux.org/cgit/apk-tools/" license=GPL-2 build() { cd "$srcdir/$pkgname-$pkgver" sed -i -e 's:-Werror::' Make.rules make || return 1 make static || return 1 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 } static() { pkgdesc="Alpine Package Keeper - static binary" install -Dm755 "$srcdir"/$pkgname-$pkgver/src/apk.static \ "$subpkgdir"/sbin/apk.static } md5sums="64cc6fac209ad85b1dade7f796d8f842 apk-tools-2.0_rc3.tar.bz2"