blob: b60cf3b87fe61dc685f3c00737372906090511df (
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=5.0.1
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)
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=('efd890ccaea2a83020c11746315a404f')
|