# Maintainer: Leif Warner pkgname=geocouch pkgver=0.3.0 pkgrel=1 pkgdesc="A CouchDB add-on to support geospatial indexing and queries." arch=('i686' 'x86_64') url="http://github.com/couchbase/geocouch" license=('APACHE') depends=('couchdb') source=('https://github.com/couchbase/geocouch/tarball/couchdb1.2.x_v0.3.0') install=geocouch.install md5sums=('61b8c716b2901109ee6fb8b8abe9f7c7') build() { cd "$srcdir/couchbase-geocouch-d815127" export COUCH_SRC=/usr/lib/couchdb/erlang/lib/couch-1.2.0/include/ make } package() { cd "$srcdir/couchbase-geocouch-d815127" install -d -m755 -o couchdb -g daemon $pkgdir/etc/couchdb/default.d install -m644 -o couchdb -g daemon etc/couchdb/default.d/geocouch.ini $pkgdir/etc/couchdb/default.d/geocouch.ini install -d $pkgdir/usr/share/couchdb/www/script/test install -t $pkgdir/usr/share/couchdb/www/script/test share/www/script/test/* install -d $pkgdir/usr/lib/couchdb/erlang/lib/geocouch/ebin install -t $pkgdir/usr/lib/couchdb/erlang/lib/geocouch/ebin ebin/* }