blob: 4dc9804194540494c18cd19e4f6544452c420b1e (
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
|
# Maintainer: Christophe Robin <crobin at nekoo a-dot com>
pkgname=couchbase-server-community
pkgver=6.0.0
pkgrel=1
pkgdesc="A document database featuring a powerful query language and unrivaled performance at scale."
arch=('x86_64')
url="http://www.couchbase.com/"
source=(
"${pkgname}-v${pkgver}.deb::http://packages.couchbase.com/releases/${pkgver}/${pkgname}_${pkgver}-ubuntu16.04_amd64.deb"
)
install=couchbase-server.install
depends=(glibc gcc-libs sqlite openssl zlib python2)
conflicts=(couchbase3-server-community couchbase4-server-community couchbase5-server-community)
package() {
msg2 "Extracting the data.tar.gz file"
tar -xf data.tar.xz -C "${pkgdir}/"
# fix python binaries
msg2 "Fixing couchbase binaries to use python2"
grep -lrnz '^#!/usr/bin/env python' "${pkgdir}/opt/couchbase/"{bin,lib/python} | xargs sed -i 's/env python$/env python2/'
# remove init.d and replace by systemd definition
msg2 "Installing systemd service file"
rm -Rf "${pkgdir}/etc"
mv "${pkgdir}/lib" "${pkgdir}/usr/lib"
}
md5sums=('77f33dc0c72b337e10ddb0afe359c1f9')
|