[arch-commits] Commit in gdal/trunk (PKGBUILD)

Balló György bgyorgy at nymeria.archlinux.org
Thu Feb 20 18:15:02 UTC 2014


    Date: Thursday, February 20, 2014 @ 19:15:02
  Author: bgyorgy
Revision: 105989

upgpkg: gdal 1.10.1-2

- Enable SpatiaLite support (FS#37201)
- Enable libtool support (FS#38798)
- Build man pages (FS#38927)

Modified:
  gdal/trunk/PKGBUILD

----------+
 PKGBUILD |   32 ++++++++++++++++++++------------
 1 file changed, 20 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-02-20 17:46:02 UTC (rev 105988)
+++ PKGBUILD	2014-02-20 18:15:02 UTC (rev 105989)
@@ -5,13 +5,13 @@
 
 pkgname=gdal
 pkgver=1.10.1
-pkgrel=1
+pkgrel=2
 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' 'poppler' 'python2' 'python2-numpy' 'cfitsio' 'sqlite' 'libmariadbclient' 'postgresql-libs')
-makedepends=('perl' 'swig' 'chrpath')
+depends=('curl' 'geos' 'giflib' 'hdf5' 'libgeotiff' 'libjpeg' 'libpng' 'libspatialite' 'libtiff' 'netcdf' 'poppler' 'python2' 'python2-numpy' 'cfitsio' 'sqlite' 'libmariadbclient' 'postgresql-libs')
+makedepends=('perl' 'swig' 'chrpath' 'doxygen')
 optdepends=('postgresql: postgresql database support'
             'mariadb: mariadb database support'
             'perl:  perl binding support'
@@ -22,12 +22,7 @@
 sha256sums=('9984f0314c0bd831eb59fb646c2bc5e13cf1378be4f51499045166cbe62be6ea'
             '55a0a961b2d1caddf80f18b6763a96690b0b6443fbd5a0c89e29503ded3bcea6')
 
-build() {
-  export CFLAGS="$CFLAGS -fno-strict-aliasing"
-
-# bug 23654
-  export LDFLAGS="$LDFLAGS -Wl,--as-needed" 
-
+prepare() {
   cd "${srcdir}/$pkgname-$pkgver"
   patch -Np0 -i "${srcdir}/gdal-1.5.1-python-install.patch"
 
@@ -37,9 +32,20 @@
       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 --without-libtool --with-curl \
-              --with-hdf5 --with-perl --with-geos --with-png --with-poppler
+              --with-geotiff --with-mysql --with-python --with-curl \
+              --with-hdf5 --with-perl --with-geos --with-png --with-poppler --with-spatialite
 
 # workaround for bug #13646
   sed -i 's/PY_HAVE_SETUPTOOLS=1/PY_HAVE_SETUPTOOLS=/g' ./GDALmake.opt
@@ -46,12 +52,13 @@
   sed -i 's/EXE_DEP_LIBS/KILL_EXE_DEP_LIBS/' apps/GNUmakefile
 
   make
+  make man
 }
 
 package () {
   cd "${srcdir}/$pkgname-$pkgver"
-  install -d "${pkgdir}/usr/lib/python2.7/site-packages/"
   make DESTDIR="${pkgdir}" install
+  make DESTDIR="${pkgdir}" install-man
 
 # install license
   install -D -m644 LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
@@ -58,6 +65,7 @@
 
 #FS15477 clean up junks
   rm -f "${pkgdir}"/usr/bin/*.dox
+  rm -f "${pkgdir}"/usr/share/man/man1/_build_gdal_src_gdal-${pkgver}_apps_.1
 
 # Remove RPATH
   chrpath --delete "${pkgdir}"/usr/lib/perl5/${CARCH}-linux-thread-multi/auto/Geo/OSR/OSR.so




More information about the arch-commits mailing list