diff options
author | Greg White | 2016-01-07 09:54:49 -0500 |
---|---|---|
committer | Greg White | 2016-01-07 09:54:49 -0500 |
commit | e6ceca4ea06792a43e5308cf1ee3821f028d85f8 (patch) | |
tree | edb71d4d14f6a7e8da0213f3630ea6c05a9f13e1 | |
download | aur-e6ceca4ea06792a43e5308cf1ee3821f028d85f8.tar.gz |
Add
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c268e5b6352d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = postgis-src + pkgdesc = Postgres GIS extensions (from source) + pkgver = 2.2.1 + pkgrel = 2 + url = http://postgis.net/ + arch = i686 + arch = x86_64 + license = GPL + depends = postgresql + depends = gdal + depends = geos + depends = json-c + depends = libxml2 + depends = libxslt + optdepends = gtk2-appmenu: for GTK support + provides = postgis-src=2.2.1 + conflicts = postgis-src + conflicts = postgis + source = http://download.osgeo.org/postgis/source/postgis-2.2.1.tar.gz + sha256sums = 0fe500b0250203aac656bfa8f42f8458b63f33258404844e066e0e535988fa09 + +pkgname = postgis-src + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..70abd7a86e56 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Greg White <gwhite@kupulau.com> +pkgname=postgis-src +_pkgname=${pkgname} +pkgver=2.2.1 +pkgrel=2 +pkgdesc="Postgres GIS extensions (from source)" +arch=('i686' 'x86_64') +url="http://postgis.net/" +license=('GPL') +depends=('postgresql' 'gdal' 'geos' 'json-c' 'libxml2' 'libxslt') +optdepends=('gtk2-appmenu: for GTK support') +provides=("$_pkgname=$pkgver") +conflicts=($_pkgname postgis) +source=("http://download.osgeo.org/postgis/source/postgis-${pkgver}.tar.gz") +sha256sums=('0fe500b0250203aac656bfa8f42f8458b63f33258404844e066e0e535988fa09') + +build() { + cd postgis-${pkgver} + + ./configure --prefix=/usr --with-gdalconfig=/usr/bin/gdal-config --with-gui + make +} + +package() { + cd postgis-${pkgver} + + make DESTDIR="${pkgdir}" install +# mkdir -p "${pkgdir}/usr/share/postgresql/extension/" +# find . -name "*.control" | xargs cp -vt ${pkgdir}/usr/share/postgresql/extension/ +} |