summaryrefslogtreecommitdiff
path: root/community/gdal/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-03-26 00:06:16 -0700
committerroot <root@rshg054.dnsready.net>2013-03-26 00:06:16 -0700
commitc16968d4179be76966c262f854c9e1fb827dc3ec (patch)
tree3dc52f45dc9b7b4a2999ca42a28631072abb7e39 /community/gdal/PKGBUILD
parent32793d9a5b60ef0591c71c12ad75121d9b155adf (diff)
Tue Mar 26 00:06:15 PDT 2013
Diffstat (limited to 'community/gdal/PKGBUILD')
-rw-r--r--community/gdal/PKGBUILD33
1 files changed, 19 insertions, 14 deletions
diff --git a/community/gdal/PKGBUILD b/community/gdal/PKGBUILD
index 4093e87b1..1ecdf3f4c 100644
--- a/community/gdal/PKGBUILD
+++ b/community/gdal/PKGBUILD
@@ -1,26 +1,26 @@
-# $Id: PKGBUILD 82847 2013-01-25 01:53:13Z svenstaro $
+# $Id: PKGBUILD 87003 2013-03-25 19:16:43Z bpiotrowski $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributor: William Rea <sillywilly@gmail.com>
pkgname=gdal
-pkgver=1.9.1
+pkgver=1.9.2
pkgrel=1
pkgdesc="A translator library for raster geospatial data formats"
arch=('i686' 'x86_64')
url="http://www.gdal.org/"
license=('custom')
-depends=('curl' 'geos' 'giflib' 'hdf5' 'libgeotiff' 'libjpeg' 'libpng' 'libtiff' 'netcdf' 'python2' 'python2-numpy' 'cfitsio' 'sqlite' 'libmysqlclient' 'postgresql-libs')
-makedepends=('perl' 'swig')
+depends=('curl' 'geos' 'giflib' 'hdf5' 'libgeotiff' 'libjpeg' 'libpng' 'libtiff' 'netcdf' 'python2' 'python2-numpy' 'cfitsio' 'sqlite' 'libmariadbclient' 'postgresql-libs')
+makedepends=('perl' 'swig' 'chrpath')
optdepends=('postgresql: postgresql database support'
- 'mysql: mysql database support'
+ 'mariadb: mariab database support'
'perl: perl binding support'
'swig: perl binding support')
options=('!libtool')
changelog=$pkgname.changelog
source=(http://download.osgeo.org/${pkgname}/${pkgname}-${pkgver}.tar.gz
gdal-1.5.1-python-install.patch)
-md5sums=('c5cf09b92dac1f5775db056e165b34f5'
+md5sums=('3f39db89f4710269b3a8bf94178e07aa'
'81afc1c26d29cee84aadb6924fe33861')
build() {
@@ -29,8 +29,8 @@ build() {
# bug 23654
export LDFLAGS="$LDFLAGS -Wl,--as-needed"
- cd ${srcdir}/$pkgname-$pkgver
- patch -Np0 -i ${srcdir}/gdal-1.5.1-python-install.patch
+ cd "${srcdir}/$pkgname-$pkgver"
+ patch -Np0 -i "${srcdir}/gdal-1.5.1-python-install.patch"
# python2 fixes
sed -i 's_python python1.5_python2 python python1.5_' configure
@@ -45,19 +45,24 @@ build() {
# 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
- install -d ${pkgdir}/usr/lib/python2.7/site-packages/
make
}
package () {
- cd ${srcdir}/$pkgname-$pkgver
-
- make DESTDIR=${pkgdir} install
+ cd "${srcdir}/$pkgname-$pkgver"
+ install -d "${pkgdir}/usr/lib/python2.7/site-packages/"
+ make DESTDIR="${pkgdir}" install
# install license
- install -D -m644 LICENSE.TXT ${pkgdir}/usr/share/licenses/${pkgname}/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/bin/*.dox
+
+ # 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
}