void-packages/srcpkgs/couchdb/template
2018-09-02 21:23:12 -03:00

40 lines
1.2 KiB
Bash

# Template file for 'couchdb'
pkgname=couchdb
version=1.7.1
revision=2
wrksrc="apache-couchdb-${version}"
build_style=gnu-configure
conf_files="/etc/couchdb/default.ini /etc/couchdb/local.ini"
hostmakedepends="erlang pkg-config"
makedepends="libressl-devel icu-devel js-devel libcurl-devel"
depends="erlang"
short_desc="A document-oriented database"
maintainer="Gerardo Di Iorio <arete74@gmail.com>"
license="Apache-2.0"
homepage="http://couchdb.apache.org/"
distfiles="https://dist.apache.org/repos/dist/release/couchdb/source/${version}/apache-couchdb-${version}.tar.gz"
checksum=91200aa6fbc6fa5e2f3d78ef40e39d8c1ec7c83ea1c2cd730d270658735b2cad
broken="unsupported version upstream, broken distfiles"
system_accounts="couchdb"
couchdb_homedir="/var/lib/couchdb"
make_dirs="
/var/lib/couchdb 0700 couchdb couchdb
/var/log/couchdb 0750 couchdb couchdb"
if [ "$CROSS_BUILD" ]; then
makedepends+=" erlang"
configure_args="--with-erlang=${XBPS_CROSS_BASE}/usr/lib/erlang/usr/include"
fi
pre_configure() {
sed -i 's|-Werror|-pie -fPIE|g' src/couchdb/priv/Makefile.*
if [ "$CROSS_BUILD" ]; then
sed -i '/FLAGS.*\(usr\|opt\)/s/.*/:/' configure
fi
}
post_install() {
vsv couchdb
}