diff options
Diffstat (limited to 'community/libcouchbase/APKBUILD')
-rw-r--r-- | community/libcouchbase/APKBUILD | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/community/libcouchbase/APKBUILD b/community/libcouchbase/APKBUILD new file mode 100644 index 0000000000..aa3b310e52 --- /dev/null +++ b/community/libcouchbase/APKBUILD @@ -0,0 +1,81 @@ +# Contributor: Nathan Johnson <nathan@nathanjohnson.info> +# Maintainer: Nathan Johnson <nathan@nathanjohnson.info> +pkgname=libcouchbase +pkgver=2.7.3 +pkgrel=0 +pkgdesc="C client library for Couchbase" +url="https://developer.couchbase.com/community" +arch="all" +license="ASL 2.0" +depends= +depends_dev="musl-dev libressl-dev snappy-dev" +makedepends="$depends_dev cmake perl libtool libev-dev libevent-dev libuv-dev" +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/$pkgname-$pkgver" + +build() { + mkdir "$builddir"/build + cd "$builddir"/build + ../cmake/configure \ + --prefix=/usr \ + --disable-couchbasemock \ + || return 1 + make +} + +check() { + cd "$builddir"/build + ctest +} + +package() { + make -C "$builddir"/build install DESTDIR="$pkgdir" || return 1 +} + +dev() { + default_dev || return 1 + mv "$subpkgdir"/usr/bin/cbc-write-config \ + "$pkgdir"/usr/bin || return 1 + rmdir "$subpkgdir"/usr/bin +} + +libevent() { + pkgdesc="$pkgdesc (libevent backend)" + depends="$pkgname libevent" + + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libcouchbase_libevent.so "$subpkgdir"/usr/lib +} + +libev() { + pkgdesc="$pkgdesc (libev backend)" + depends="$pkgname libev" + + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libcouchbase_libev.so "$subpkgdir"/usr/lib +} + +libuv() { + pkgdesc="$pkgdesc (libuv backend)" + depends="$pkgname libuv" + + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libcouchbase_libuv.so "$subpkgdir"/usr/lib +} + +bin() { + pkgdesc="$pkgdesc (command line utilities)" + depends="$pkgname" + + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +sha512sums="606969bfd49a285ae0c0b60b2f6823f0dad85c94a3597bf8f0205f10b25ca9f205a335f5bde20ccf11d010a42bd9c0bbe6599ae58851ac7a402c065168f04c01 libcouchbase-2.7.3.tar.gz +987b76b9c8a38a1f144bcada3c24192b30b352c993c433f4a2a1e381b765ae6bb845ebc6393c794da1b4efbb68fd1d34b027104fecf5c9bcc29b0f58c7f6a474 disable_git_version_check.patch +9023fe6c0d88577f40598f201be121012199167e9eef7e99da29664d23fd5e0c488fad2eda88ed3b30ea089b60e760c1b472bb46bb0804b5f7bb7091f0d8a2ed fix_snappy.patch +72319b86fdd91728723ccb091e72199788a84e2ec9ea12c0fcd1ed686eb155ec11e0addbff96735f83e7f31764a85650f0483b6e76d3a8bee16f71b2751fe4a9 fix_socktest.patch" |