diff --git a/extra/gdal/PKGBUILD b/extra/gdal/PKGBUILD index 62f1a189c..9478925a4 100644 --- a/extra/gdal/PKGBUILD +++ b/extra/gdal/PKGBUILD @@ -11,7 +11,7 @@ pkgbase=gdal pkgname=(gdal python-gdal) pkgver=3.7.0 -pkgrel=3 +pkgrel=5 pkgdesc="A translator library for raster and vector geospatial data formats" arch=(x86_64) url="https://gdal.org/" @@ -20,7 +20,7 @@ makedepends=(cmake opencl-headers python-setuptools python-numpy proj blosc cfitsio curl crypto++ libdeflate expat libfreexl libgeotiff geos giflib libheif hdf5 libjpeg-turbo json-c libjxl xz libxml2 lz4 mariadb-libs netcdf unixodbc ocl-icd openexr openjpeg2 - openssl pcre2 libpng podofo poppler postgresql-libs qhull + openssl pcre2 libpng podofo-0.9 poppler postgresql-libs qhull libspatialite sqlite swig libtiff libwebp xerces-c zlib zstd) # armadillo basisu brunsli lerc libkml qb3 rasterlite2 sfcgal tiledb # ogdi @@ -28,6 +28,11 @@ changelog=$pkgbase.changelog source=(https://download.osgeo.org/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.xz) b2sums=('400cc17fc636c637f7c40e93aed8e2db7bfbbe73741da4135cfeec8dbcda24ce0c8035214edf038afc29a916012da86a78d789729540f870231dfa6aa27e424a') +prepare() { +# Fix build with podofo-0.9 + sed -e 's|podofo.h|podofo/podofo.h|' -i $pkgbase-$pkgver/frmts/pdf/pdfsdk_headers.h +} + build() { cmake -B build -S $pkgbase-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -74,7 +79,9 @@ build() { -DGDAL_USE_WEBP=ON \ -DGDAL_USE_XERCESC=ON \ -DGDAL_USE_ZLIB=ON \ - -DGDAL_USE_ZSTD=ON + -DGDAL_USE_ZSTD=ON \ + -DPODOFO_INCLUDE_DIR=/usr/include/podofo-0.9 \ + -DPODOFO_LIBRARY=/usr/lib/podofo-0.9/libpodofo.so make -C build } @@ -90,7 +97,7 @@ package_gdal () { 'netcdf: netCDF support' 'openexr: EXR support' 'openjpeg2: JP2 support' - 'podofo: PDF support' + 'podofo-0.9: PDF support' 'poppler: PDF support' 'postgresql-libs: PostgreSQL support' 'libwebp: WebP support')