aboutsummaryrefslogtreecommitdiffstats
path: root/main/apk-tools/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-20 09:29:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-20 09:36:42 +0000
commit9fa13facca8d489a38f9bb3a120bdd9f4e886044 (patch)
tree56bb400120ae7694c9d73fc9abe49f4f4c825fc7 /main/apk-tools/APKBUILD
parent3438ca7110038748172d38f87f7ad095af2bbb56 (diff)
downloadaports-9fa13facca8d489a38f9bb3a120bdd9f4e886044.tar.bz2
aports-9fa13facca8d489a38f9bb3a120bdd9f4e886044.tar.xz
main/apk-tools: upgrade to 2.2.0_pre1
Diffstat (limited to 'main/apk-tools/APKBUILD')
-rw-r--r--main/apk-tools/APKBUILD29
1 files changed, 10 insertions, 19 deletions
diff --git a/main/apk-tools/APKBUILD b/main/apk-tools/APKBUILD
index 170b1533ea..bdb79fd40e 100644
--- a/main/apk-tools/APKBUILD
+++ b/main/apk-tools/APKBUILD
@@ -1,14 +1,12 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apk-tools
-pkgver=2.1.0
-pkgrel=2
+pkgver=2.2.0_pre1
+pkgrel=0
pkgdesc="Alpine Package Keeper - package manager for alpine"
subpackages="$pkgname-static lua-apk:luaapk"
depends=
makedepends="zlib-dev openssl-dev lua-dev"
-source="http://git.alpinelinux.org/cgit/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2
- 0001-db-remount-read-only-after-the-file-handles-have-bee.patch
- 0002-db-more-fix-for-read-only-cache-remounting.patch
+source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2
"
url="http://git.alpinelinux.org/cgit/apk-tools/"
@@ -26,27 +24,22 @@ prepare() {
done
echo "FULL_VERSION=$pkgver-r$pkgrel" > config.mk || return 1
+ echo "LUAAPK=YesPlease" >> config.mk
+ echo "export LUAAPK" >> config.mk
}
build() {
cd "$_builddir"
make || return 1
make static || return 1
- ${CC:-gcc} $CFLAGS -fPIC -DAPK_VERSION=\"$pkgver-r$pkgrel\" $LDFLAGS -shared \
- -llua src/version.o src/lua-apk.c -o apk.so
}
package() {
cd "$_builddir"
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
install -d "$pkgdir"/var/lib/apk "$pkgdir"/var/cache/misc
+ # the shipped README is empty
+ rm -r "$pkgdir"/usr/share/
}
static() {
@@ -57,10 +50,8 @@ static() {
luaapk() {
pkgdesc="Lua module for apk-tools"
- mkdir -p "$subpkgdir"/usr/lib/lua/5.1
- install "$_builddir"/apk.so "$subpkgdir"/usr/lib/lua/5.1/
+ mkdir -p "$subpkgdir"/usr/
+ mv "$pkgdir"/usr/lib "$subpkgdir"/usr/lib/
}
-md5sums="9f6d71c9be814afece7a4b73430bd078 apk-tools-2.1.0.tar.bz2
-6eb78a324be996c831d4850c81ad5821 0001-db-remount-read-only-after-the-file-handles-have-bee.patch
-9ca0a44c17b43e95a7f1bd8107db74da 0002-db-more-fix-for-read-only-cache-remounting.patch"
+md5sums="cda5172b66e7778b855dfda44e5f174f apk-tools-2.2.0_pre1.tar.bz2"