2017-11-09 19:28:45 +00:00
|
|
|
# Maintainer: Bruno Pagani <archange@archlinux.org>
|
|
|
|
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
2017-04-26 04:24:24 +00:00
|
|
|
# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
|
|
|
|
# Contributor: Michael Fellinger <m.fellinger@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - patch and rebuild rebar on AArch64
|
|
|
|
|
|
|
|
pkgname=couchdb
|
2018-08-08 19:35:23 +00:00
|
|
|
pkgver=2.2.0
|
|
|
|
pkgrel=2
|
2017-04-26 04:24:24 +00:00
|
|
|
pkgdesc="A document-oriented database that can be queried and indexed in a MapReduce fashion using JSON"
|
2017-11-09 19:28:45 +00:00
|
|
|
arch=('x86_64')
|
2018-03-16 17:56:48 +00:00
|
|
|
url="https://couchdb.apache.org"
|
2017-04-26 04:24:24 +00:00
|
|
|
license=('APACHE')
|
2018-03-16 17:56:48 +00:00
|
|
|
depends=('icu' 'js185' 'zlib')
|
2018-07-11 13:49:12 +00:00
|
|
|
makedepends=('erlang-nox-20')
|
2017-06-10 20:15:32 +00:00
|
|
|
install=${pkgname}.install
|
2017-04-26 04:24:24 +00:00
|
|
|
backup=('etc/couchdb/local.ini'
|
2017-06-10 20:15:32 +00:00
|
|
|
'etc/couchdb/vm.args')
|
2017-11-09 19:28:45 +00:00
|
|
|
source=("https://www-eu.apache.org/dist/couchdb/source/${pkgver}/apache-couchdb-${pkgver}.tar.gz"{,.asc}
|
2017-08-14 12:34:18 +00:00
|
|
|
"https://github.com/rebar/rebar/commit/f9b850c428dae6cf6673ff076d863d5b6c343569.patch"
|
2017-06-10 20:15:32 +00:00
|
|
|
'couchdb.service'
|
|
|
|
'couchdb.sysusers'
|
|
|
|
'couchdb.tmpfiles'
|
|
|
|
'datadirs.ini')
|
2018-08-08 19:35:23 +00:00
|
|
|
sha256sums=('0e3ceb8aab73af8e54a2e2c949f362495b1c938455a15e9a4e294901c6c67985'
|
2017-06-10 20:15:32 +00:00
|
|
|
'SKIP'
|
2017-08-14 12:34:18 +00:00
|
|
|
'f9465e279b40adde6db8008c4c0366a700a04602bfa7f189c9ad6eac13754efa'
|
2018-03-16 17:56:48 +00:00
|
|
|
'e2976dbdd2fb63fe8d09bee0d9c9a97e8785533d9c323276b4030354cb6d8957'
|
2017-06-10 20:15:32 +00:00
|
|
|
'3ed1ad2a37a068ce194b03fb72eb35285d60fa7faf2d2c2bb710703d229108a8'
|
|
|
|
'0ce806cbc5e18e60b17be9fd2cdbd4c7f12cc84ca95b079efdede16ddb5f3efd'
|
|
|
|
'937ca3498aab47b3f2226d027fa8a1a95de55cbb463373099e28cb9a6c7046ac')
|
2017-11-09 19:28:45 +00:00
|
|
|
validpgpkeys=('2EC788AE3F239FA13E82D215CDE711289384AE37') # Joan Touzet (CODE SIGNING KEY) <wohali@apache.org>
|
2017-04-26 04:24:24 +00:00
|
|
|
|
|
|
|
prepare() {
|
2018-03-16 17:56:48 +00:00
|
|
|
cd apache-couchdb-${pkgver}
|
|
|
|
sed -i 's|$ROOTDIR/etc/vm.args|/etc/couchdb/vm.args|' rel/overlay/bin/couchdb
|
2017-05-14 20:25:30 +00:00
|
|
|
|
2018-03-16 17:56:48 +00:00
|
|
|
if [[ $CARCH == aarch64 ]]; then
|
|
|
|
cd src/rebar
|
|
|
|
patch -p1 -i "$srcdir/f9b850c428dae6cf6673ff076d863d5b6c343569.patch"
|
|
|
|
./bootstrap
|
|
|
|
cp rebar ../../bin
|
|
|
|
fi
|
2017-04-26 04:24:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-03-16 17:56:48 +00:00
|
|
|
cd apache-couchdb-${pkgver}
|
|
|
|
./configure
|
|
|
|
make release
|
2017-04-26 04:24:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-03-16 17:56:48 +00:00
|
|
|
cd apache-couchdb-${pkgver}
|
|
|
|
install -dm755 "${pkgdir}"/usr/lib/
|
|
|
|
install -dm755 "${pkgdir}"/etc/couchdb/
|
2017-04-26 04:24:24 +00:00
|
|
|
|
2018-03-16 17:56:48 +00:00
|
|
|
cp -r rel/couchdb "${pkgdir}"/usr/lib/couchdb
|
|
|
|
mv "${pkgdir}"/usr/lib/couchdb/etc/local.ini "${pkgdir}"/etc/couchdb/local.ini
|
|
|
|
mv "${pkgdir}"/usr/lib/couchdb/etc/vm.args "${pkgdir}"/etc/couchdb/vm.args
|
2017-04-26 04:24:24 +00:00
|
|
|
|
2018-03-16 17:56:48 +00:00
|
|
|
cd "${srcdir}"
|
|
|
|
install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
|
|
|
|
install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
|
|
|
|
install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
|
|
|
|
install -Dm644 datadirs.ini -t "${pkgdir}"/usr/lib/couchdb/etc/
|
2017-04-26 04:24:24 +00:00
|
|
|
}
|