# Contributor: Nathan Johnson # Maintainer: Nathan Johnson pkgname=libcouchbase pkgver=2.6.3 pkgrel=0 pkgdesc="C client library for Couchbase" url="http://developer.couchbase.com/community" arch="all" 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" 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" build() { cd "$builddir" rm -rf build && mkdir build && cd build ../cmake/configure --prefix=/usr --disable-couchbasemock || return 1 make || return 1 ctest || return 1 } package() { cd "$builddir"/build make install DESTDIR="$pkgdir" || return 1 } dev() { pkgdesc="$pkgdesc (development files)" depends="$pkgname" # can't use default_dev because it grabs /usr/bin/cbc-write-config mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/include "$subpkgdir"/usr/ } libevent() { pkgdesc="libevent backend for libcouchbase" depends="$pkgname libevent" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libcouchbase_libevent.so "$subpkgdir"/usr/lib } libev() { pkgdesc="libev backend for libcouchbase" depends="$pkgname libev" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libcouchbase_libev.so "$subpkgdir"/usr/lib } libuv() { pkgdesc="libuv backend for libcouchbase" depends="$pkgname libuv" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libcouchbase_libuv.so "$subpkgdir"/usr/lib } bin() { pkgdesc="Command line utilities for Couchbase" depends="$pkgname" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } md5sums="5f9380a382e933e85d24a67387354d5c libcouchbase-2.6.3.tar.gz 99f6fd7df5b3ccf4be9bc3363a96efea disable_git_version_check.patch 30a98601dd98849434379055b077e8fe fix_snappy.patch 00792fefbf19d29257411285afad5dd5 fix_socktest.patch" sha256sums="97b849065e94989126682b5b89d839080657c68e37430f254319bcdb653cd6c2 libcouchbase-2.6.3.tar.gz c323477ab7d2dddad9decf85b00e64a9b13e4e0c9eb78890e8c2ff99cee9ed3b disable_git_version_check.patch 4841f7eea5091917bc9735447d59b839a9aea6582bbe69c3c5d41f6b5458eea1 fix_snappy.patch 541a8d97d1e84fcbbee65014e7f81efa312c0f592975e168d7c81ded5a585152 fix_socktest.patch" sha512sums="cd47e8b19b2513520f50073ca6e4f5444325cc724e108d50904a1c6b9c52ce864d9ccf0e9c0e5665a96f0e0982162083e9fca8e64b27c4446b5787619871b662 libcouchbase-2.6.3.tar.gz 987b76b9c8a38a1f144bcada3c24192b30b352c993c433f4a2a1e381b765ae6bb845ebc6393c794da1b4efbb68fd1d34b027104fecf5c9bcc29b0f58c7f6a474 disable_git_version_check.patch 9023fe6c0d88577f40598f201be121012199167e9eef7e99da29664d23fd5e0c488fad2eda88ed3b30ea089b60e760c1b472bb46bb0804b5f7bb7091f0d8a2ed fix_snappy.patch 72319b86fdd91728723ccb091e72199788a84e2ec9ea12c0fcd1ed686eb155ec11e0addbff96735f83e7f31764a85650f0483b6e76d3a8bee16f71b2751fe4a9 fix_socktest.patch"