updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / geocouch / PKGBUILD
blob1996d87f04a81f72544f36b7ddcbaeb65b288e3c
1 # Maintainer: Leif Warner <abimelech@gmail.com>
2 pkgname=geocouch
3 pkgver=1.2.0
4 pkgrel=1
5 pkgdesc="A CouchDB add-on to support geospatial indexing and queries."
6 arch=('i686' 'x86_64')
7 url="http://github.com/couchbase/geocouch"
8 license=('APACHE')
9 depends=('couchdb')
10 source=('https://github.com/couchbase/geocouch/tarball/couchbase_1.2.0_geo')
11 install=geocouch.install
12 md5sums=('f1611b857003daffe6690d7c41fe73f6')
14 build() {
15     cd $srcdir/couchbase-geocouch-f755673
16     export COUCH_SRC=/usr/lib/couchdb/erlang/lib/couch-1.2.0a-/include/
17     make 
20 package(){
21     cd "$srcdir/couchbase-geocouch-f755673"
22     install -d -m755 -o couchdb -g daemon $pkgdir/etc/couchdb/local.d
23     install -m644 -o couchdb -g daemon etc/couchdb/local.d/geocouch.ini $pkgdir/etc/couchdb/local.d/geocouch.ini
24     install -d $pkgdir/usr/share/couchdb/www/script/test
25     install -t $pkgdir/usr/share/couchdb/www/script/test share/www/script/test/* 
26     install -d $pkgdir/usr/lib/couchdb/erlang/lib/geocouch/ebin
27     install -t $pkgdir/usr/lib/couchdb/erlang/lib/geocouch/ebin build/*