blob: a04b693087d0257c41c9b1337b2891cd2e3b0b4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Nathan Johnson <nathan@nathanjohnson.info>
pkgname=libcouchbase
pkgver=2.6.2
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"
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
}
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
cd 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="529f6f1c9a92703e63dbf50f26c11cfb libcouchbase-2.6.2.tar.gz
99f6fd7df5b3ccf4be9bc3363a96efea disable_git_version_check.patch
30a98601dd98849434379055b077e8fe fix_snappy.patch
00792fefbf19d29257411285afad5dd5 fix_socktest.patch"
sha256sums="8f09b40e1d6d24e301d0df7c28043e7cf8766ac3309ab92d31826f4501af70f2 libcouchbase-2.6.2.tar.gz
c323477ab7d2dddad9decf85b00e64a9b13e4e0c9eb78890e8c2ff99cee9ed3b disable_git_version_check.patch
4841f7eea5091917bc9735447d59b839a9aea6582bbe69c3c5d41f6b5458eea1 fix_snappy.patch
541a8d97d1e84fcbbee65014e7f81efa312c0f592975e168d7c81ded5a585152 fix_socktest.patch"
sha512sums="faca60d9740ae8efa8cc1f5dcc3e29073dcfddb2c88d3d7360be16bff7cd0683a5f326df002a2346c7d2e0812d699f5c49353ae3b14edc4d93363bc2a6d64a74 libcouchbase-2.6.2.tar.gz
987b76b9c8a38a1f144bcada3c24192b30b352c993c433f4a2a1e381b765ae6bb845ebc6393c794da1b4efbb68fd1d34b027104fecf5c9bcc29b0f58c7f6a474 disable_git_version_check.patch
9023fe6c0d88577f40598f201be121012199167e9eef7e99da29664d23fd5e0c488fad2eda88ed3b30ea089b60e760c1b472bb46bb0804b5f7bb7091f0d8a2ed fix_snappy.patch
72319b86fdd91728723ccb091e72199788a84e2ec9ea12c0fcd1ed686eb155ec11e0addbff96735f83e7f31764a85650f0483b6e76d3a8bee16f71b2751fe4a9 fix_socktest.patch"
|