diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-02 00:51:14 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-02 00:51:14 +0200 |
commit | 503d191a3c66c489188d732d1565180a49f5c82f (patch) | |
tree | c1b7b512a48b8803f197c2c70b012a0051333872 /testing/libcouchbase/APKBUILD | |
parent | 9f4142b21d7d96dc7d8ae132e21cfbb96df4004f (diff) | |
download | aports-503d191a3c66c489188d732d1565180a49f5c82f.tar.bz2 aports-503d191a3c66c489188d732d1565180a49f5c82f.tar.xz |
testing/libcouchbase: improve abuild
Diffstat (limited to 'testing/libcouchbase/APKBUILD')
-rw-r--r-- | testing/libcouchbase/APKBUILD | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/testing/libcouchbase/APKBUILD b/testing/libcouchbase/APKBUILD index a04b693087..dd7e4cdccf 100644 --- a/testing/libcouchbase/APKBUILD +++ b/testing/libcouchbase/APKBUILD @@ -6,32 +6,20 @@ pkgrel=0 pkgdesc="C client library for Couchbase" url="http://developer.couchbase.com/community" arch="all" -license="ASL 2.0" +license="ASL-2.0" depends="" depends_dev="musl-dev openssl-dev snappy-dev" makedepends="$depends_dev cmake perl libtool libev-dev libevent-dev libuv-dev" -install="" subpackages="$pkgname-dev $pkgname-bin $pkgname-doc $pkgname-libevent $pkgname-libev $pkgname-libuv" source="$pkgname-$pkgver.tar.gz::https://github.com/couchbase/libcouchbase/archive/${pkgver}.tar.gz - disable_git_version_check.patch - fix_snappy.patch - fix_socktest.patch" - -_builddir="$srcdir/libcouchbase-${pkgver}" - -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - + disable_git_version_check.patch + fix_snappy.patch + fix_socktest.patch" +builddir="$srcdir/libcouchbase-$pkgver" build() { - cd "$_builddir" + cd "$builddir" + rm -rf build && mkdir build && cd build ../cmake/configure --prefix=/usr --disable-couchbasemock || return 1 make || return 1 @@ -39,8 +27,7 @@ build() { } package() { - cd "$_builddir"/build - cd build + cd "$builddir"/build make install DESTDIR="$pkgdir" || return 1 } @@ -75,11 +62,10 @@ libuv() { mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libcouchbase_libuv.so "$subpkgdir"/usr/lib - } bin() { - pkgdesc="command line utilities for couchbase" + pkgdesc="Command line utilities for Couchbase" depends="$pkgname" mkdir -p "$subpkgdir"/usr/bin |