summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..21ed8b495d6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: peippo <christoph.fink@gmail.com>
+pkgname=postgis-svn
+pkgver=r16091
+pkgrel=1
+
+pkgdesc="Postgres GIS extensions (from git)"
+url="http://postgis.net/"
+license=('GPL')
+
+arch=('i686' 'x86_64')
+depends=('postgresql' 'gdal' 'geos' 'json-c' 'libxml2' 'libxslt')
+makedepends=('subversion')
+conflicts=(postgis)
+
+source=("${pkgname}::svn+http://svn.osgeo.org/postgis/trunk/")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${pkgname}"
+ local ver="$(svnversion)"
+ printf "r%s" "${ver//[[:alpha:]]}"
+}
+
+build() {
+ cd "${pkgname}"
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${pkgname}"
+ make DESTDIR="${pkgdir}" install
+}