diff options
author | SaultDon | 2015-07-02 10:56:23 -0700 |
---|---|---|
committer | SaultDon | 2015-07-02 10:56:23 -0700 |
commit | 0b2859363fcc54980ebb4d160620fd993a594805 (patch) | |
tree | 25d53052cfa5ab535502d803d6bedacf3d11ce44 | |
download | aur-0b2859363fcc54980ebb4d160620fd993a594805.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 50 | ||||
-rw-r--r-- | PKGBUILD | 109 | ||||
-rw-r--r-- | gdal-1.5.1-python-install.patch | 10 | ||||
-rw-r--r-- | gdal-filegdb.changelog | 61 | ||||
-rw-r--r-- | ogr_perl_2.0.0.diff | 30 |
5 files changed, 260 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..de7527b4793c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,50 @@ +pkgbase = gdal-filegdb + pkgdesc = A translator library for vector and raster geospatial data formats (PDF, FileGDB, KMZ support) + pkgver = 2.0 + pkgrel = 1 + url = http://www.gdal.org/ + changelog = gdal-filegdb.changelog + arch = i686 + arch = x86_64 + license = custom + makedepends = perl + makedepends = swig + makedepends = chrpath + makedepends = svn + makedepends = doxygen + depends = geos + depends = proj + depends = hdf5 + depends = netcdf + depends = libgeotiff + depends = giflib + depends = libjpeg + depends = libpng + depends = libtiff + depends = openjpeg2 + depends = python2 + depends = python2-numpy + depends = cfitsio + depends = curl + depends = sqlite3 + depends = libmariadbclient + depends = unixodbc + depends = libspatialite + depends = pcre + depends = postgresql-libs + depends = poppler + depends = opencl-headers + depends = filegdb-api + depends = json-c + depends = libkml-git + depends = libwebp + conflicts = gdal + source = gdal-2.0::svn+https://svn.osgeo.org/gdal/branches/2.0/gdal + source = gdal-1.5.1-python-install.patch + source = ogr_perl_2.0.0.diff + md5sums = SKIP + md5sums = 81afc1c26d29cee84aadb6924fe33861 + md5sums = 565ca4cbfe6306c815e9acccbbed3a13 + +pkgname = gdal-filegdb + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d6311b0d16a6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,109 @@ +# Maintainer: SaultDon <sault.don gmail> +# Contributor: Dražen Odobašić <dodobasic at gmail> +# Contributor: Jaroslav Lichtblau <svetlemodry@archlinux.org> +# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org +# Contributor: William Rea <sillywilly@gmail.com> + +pkgname=gdal-filegdb +_pkgname=gdal +_pkgver=2.0 +pkgver=2.0 +pkgrel=1 +pkgdesc="A translator library for vector and raster geospatial data formats (PDF, FileGDB, KMZ support)" +arch=('i686' 'x86_64') +url="http://www.gdal.org/" +license=('custom') +depends=('geos' 'proj' + 'hdf5' 'netcdf' + 'libgeotiff' 'giflib' 'libjpeg' 'libpng' 'libtiff' 'openjpeg2' + 'python2' 'python2-numpy' + 'cfitsio' 'curl' + 'sqlite3' 'libmariadbclient' 'unixodbc' 'libspatialite' 'pcre' 'postgresql-libs' + 'poppler' + 'opencl-headers' + 'filegdb-api' + 'json-c' + 'libkml-git' + 'libwebp') +makedepends=('perl' + 'swig' + 'chrpath' + 'svn' + 'doxygen') +changelog=$pkgname.changelog +source=("$_pkgname-$_pkgver::svn+https://svn.osgeo.org/gdal/branches/$_pkgver/gdal" + 'gdal-1.5.1-python-install.patch' + 'ogr_perl_2.0.0.diff') +conflicts=("$_pkgname") +md5sums=('SKIP' + '81afc1c26d29cee84aadb6924fe33861' + '565ca4cbfe6306c815e9acccbbed3a13') + +pkgver() { + cd "$_pkgname-$_pkgver" + local ver="$(svnversion)" + printf "%s.r%s" "${_pkgver}" "${ver//[[:alpha:]]}" +} + +prepare() { + cd "$srcdir/$_pkgname-$_pkgver" + + patch -Np0 -i "$srcdir/gdal-1.5.1-python-install.patch" + patch -Np1 -i "${srcdir}"/ogr_perl_2.0.0.diff + + # python2 fixes + sed -i 's_python python1.5_python2 python python1.5_' configure + for file in swig/python/{,osgeo/,samples/,scripts/}*.py; do + sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file + done + + # Fix mandir + sed -i "s|^mandir=.*|mandir='\${prefix}/share/man'|" configure +} + +build() { + cd "$srcdir/$_pkgname-$_pkgver" + export CFLAGS="$CFLAGS -fno-strict-aliasing" + + # bug 23654 + export LDFLAGS="$LDFLAGS -Wl,--as-needed" + + ./configure --prefix=/usr --with-netcdf --with-libtiff --with-sqlite3 \ + --with-geotiff --with-mysql --with-python=/usr/bin/python2 \ + --without-libtool --with-curl --with-hdf5 --with-perl --with-geos --with-openjpeg \ + --with-png --with-poppler --with-spatialite --with-pcre --without-grass --with-liblzma \ + --with-fgdb=/usr/lib/filegdb-api --with-libkml --with-odbc \ + --with-opencl --with-libjson-c --with-webp \ + + # workaround for bug #13646 + sed -i 's/PY_HAVE_SETUPTOOLS=1/PY_HAVE_SETUPTOOLS=/g' ./GDALmake.opt + sed -i 's/EXE_DEP_LIBS/KILL_EXE_DEP_LIBS/' apps/GNUmakefile + + cd swig/perl + make veryclean + make generate + + cd ../.. + make + make man +} + +package () { + cd "$srcdir/$_pkgname-$_pkgver" + + make DESTDIR="${pkgdir}" install + make DESTDIR="${pkgdir}" install-man + + # install license + install -D -m644 LICENSE.TXT "$pkgdir/usr/share/licenses/$_pkgname/LICENSE" + + # FS15477 clean up junks + rm -f "${pkgdir}"/usr/bin/*.dox + rm -f "${pkgdir}"/usr/share/man/man1/_tmp_makepkg_${pkgname}_src_gdal-${pkgver}_apps_.1 + + # Remove RPATH + chrpath --delete "${pkgdir}"/usr/lib/perl5/${CARCH}-linux-thread-multi/auto/Geo/OSR/OSR.so + chrpath --delete "${pkgdir}"/usr/lib/perl5/${CARCH}-linux-thread-multi/auto/Geo/OGR/OGR.so + chrpath --delete "${pkgdir}"/usr/lib/perl5/${CARCH}-linux-thread-multi/auto/Geo/GDAL/GDAL.so + chrpath --delete "${pkgdir}"/usr/lib/perl5/${CARCH}-linux-thread-multi/auto/Geo/GDAL/Const/Const.so +} diff --git a/gdal-1.5.1-python-install.patch b/gdal-1.5.1-python-install.patch new file mode 100644 index 000000000000..8ec414d37a82 --- /dev/null +++ b/gdal-1.5.1-python-install.patch @@ -0,0 +1,10 @@ +--- swig/python/GNUmakefile.orig 2010-04-24 01:22:07.000000000 +0200 ++++ swig/python/GNUmakefile 2010-05-05 19:14:58.000000000 +0200 +@@ -72,5 +72,5 @@ + ifeq ($(PY_HAVE_SETUPTOOLS),1) +- $(PYTHON) setup.py install ++ $(PYTHON) setup.py install --root=$(DESTDIR) + else +- $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) ++ $(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(prefix) + endif diff --git a/gdal-filegdb.changelog b/gdal-filegdb.changelog new file mode 100644 index 000000000000..c29eda34aab1 --- /dev/null +++ b/gdal-filegdb.changelog @@ -0,0 +1,61 @@ +2015-07-02 SaultDon <sault.don gmail> + * 2.0-1 + * updated to latest release + +2015-03-10 SaultDon <sault.don gmail> + * 1.11.2-1 + * updated version number to latest release + +2015-01-15 SaultDon <sault.don gmail> + * 1.11.1-2 + * added openjpeg2 support and as a dependency + +2014-10-02 SaultDon <sault.don gmail> + * 1.11.1-1 + * updated to stable release + +2014-07-31 SaultDon <sault.don gmail> + * 1.11.0-5 + * added more dependencies for webp, mysql, pcre support and more + +2014-06-28 SaultDon <sault.don gmail> + * 1.11.0-4 + * switched to svn for backported patches + +2014-05-29 SaultDon <sault.don gmail> + * 1.11.0-3 + * added json-c patch to compile against json-c >= 0.12 + +2014-05-07 SaultDon <sault.don gmail> + * updated PKGBUILD 1.11.0-2 + * removed Java and MDB reference (was my testing package, uploaded by accident) + * added libkml-git as a dependency to enable KMZ support + +2014-04-27 SaultDon <sault.don gmail> + * updated to 1.11.0-1 + * json-c added as a dependency + +2014-01-17 SaultDon <sault.don gmail> + * updated to 1.10.1-7 + * second patch for http://trac.osgeo.org/gdal/ticket/5191 + +2014-01-11 SaultDon <sault.don gmail> + * updated to 1.10.1-6 + * patch for http://trac.osgeo.org/gdal/ticket/5333 + +2014-01-10 SaultDon <sault.don gmail> + * updated to 1.10.1-4 + * added more patches! (ie, http://trac.osgeo.org/gdal/ticket/5270) + +2013-09-14 SaultDon <sault.don gmail> + * updated to 1.10.1-2 + * added prepare() into PKGBUILD + * added patches for http://trac.osgeo.org/gdal/ticket/5191 + +2013-09-14 SaultDon <sault.don gmail> + * updated to 1.10.1 + +2013-09-13 SaultDon <sault.don gmail> + * renamed to gdal-filegdb to avoid conflict with gdal package + * compiling with r/w filegdb-support + * depends on filegdb-api package in AUR diff --git a/ogr_perl_2.0.0.diff b/ogr_perl_2.0.0.diff new file mode 100644 index 000000000000..4f0129d78523 --- /dev/null +++ b/ogr_perl_2.0.0.diff @@ -0,0 +1,30 @@ +--- gdal-2.0/swig/include/perl/ogr_perl.i 2015-06-14 14:49:28.709171956 -0700 ++++ ogr_perl.i 2015-06-14 18:18:39.472605848 -0700 +@@ -109,11 +109,11 @@ + + } + +-# wrapped data source methods: ++// wrapped data source methods: + %rename (_GetDriver) GetDriver; + %rename (_TestCapability) TestCapability; + +-# wrapped layer methods: ++// wrapped layer methods: + %rename (_ReleaseResultSet) ReleaseResultSet; + %rename (_CreateLayer) CreateLayer; + %rename (_DeleteLayer) DeleteLayer; +@@ -121,11 +121,11 @@ + %rename (_DeleteField) DeleteField; + %rename (_Validate) Validate; + +-# wrapped feature methods: ++// wrapped feature methods: + %rename (_AlterFieldDefn) AlterFieldDefn; + %rename (_SetGeometry) SetGeometry; + +-# wrapped geometry methods: ++// wrapped geometry methods: + %rename (_ExportToWkb) ExportToWkb; + + %perlcode %{ |