extra/gdal to 3.8.0-2

This commit is contained in:
David Beauchamp 2023-11-29 16:53:04 -05:00
parent eeaa17cf0e
commit 91f9f1a75c
2 changed files with 25 additions and 16 deletions

View file

@ -1,6 +1,6 @@
pkgbase = gdal
pkgdesc = A translator library for raster and vector geospatial data formats
pkgver = 3.7.3
pkgver = 3.8.0
pkgrel = 2
url = https://gdal.org/
changelog = gdal.changelog
@ -39,7 +39,7 @@ pkgbase = gdal
makedepends = openssl
makedepends = pcre2
makedepends = libpng
makedepends = podofo-0.9
makedepends = podofo
makedepends = poppler
makedepends = postgresql-libs
makedepends = qhull
@ -51,8 +51,13 @@ pkgbase = gdal
makedepends = xerces-c
makedepends = zlib
makedepends = zstd
source = https://download.osgeo.org/gdal/3.7.3/gdal-3.7.3.tar.xz
b2sums = 743ce2d8027fb228630a2951af2de8ac7fb5fa0b32124d58fb545ac61fdf5240f17ae85cfdcab51ea5e1b4e2311b55af4c7bbdfe82c6ed5ea180a5c8b254ccfd
makedepends = libaec
source = https://download.osgeo.org/gdal/3.8.0/gdal-3.8.0.tar.xz
source = https://github.com/OSGeo/gdal/commit/cbed9fc9.patch
source = https://github.com/OSGeo/gdal/commit/ec33f6d6.patch
b2sums = 646aa91283e7228a054221d120bddb456c8b898f9155edd289f2b2e0bf8706fa3045a98d26e4cf5ba5dba6d8c1c7f0a7f4aaaded9457481a65910c2d313c8f9d
b2sums = e75eb8edb5507450ded3bca618a03a283ba49791df416b0a7732f859d93124704e8508fcd11271bbbeef299d05d3ad2df9e03bd805580445407cb6b8c003a98e
b2sums = 5c0abcfcfbb0ca2a96156abb4c7daaf4860fa30d553228172eb8def8b2f95e93bae9217974fba9621dcf9921e906a5ada9b710b1c0b29e7e580191a0a56a76e2
pkgname = gdal
depends = proj
@ -82,6 +87,7 @@ pkgname = gdal
depends = xerces-c
depends = zlib
depends = zstd
depends = libaec
optdepends = arrow: Arrow/Parquet support
optdepends = cfitsio: FITS support
optdepends = hdf5: HDF5 support
@ -98,5 +104,5 @@ pkgname = gdal
pkgname = python-gdal
pkgdesc = Python bindings for GDAL
depends = gdal=3.7.3
depends = gdal=3.8.0
depends = python-numpy

View file

@ -10,7 +10,7 @@
pkgbase=gdal
pkgname=(gdal python-gdal)
pkgver=3.7.3
pkgver=3.8.0
pkgrel=2
pkgdesc="A translator library for raster and vector geospatial data formats"
arch=(x86_64)
@ -20,17 +20,22 @@ 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-0.9 poppler postgresql-libs qhull
libspatialite sqlite swig libtiff libwebp xerces-c zlib zstd)
openssl pcre2 libpng podofo poppler postgresql-libs qhull
libspatialite sqlite swig libtiff libwebp xerces-c zlib zstd libaec)
# armadillo basisu brunsli lerc libkml qb3 rasterlite2 sfcgal tiledb
# ogdi
changelog=$pkgbase.changelog
source=(https://download.osgeo.org/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.xz)
b2sums=('743ce2d8027fb228630a2951af2de8ac7fb5fa0b32124d58fb545ac61fdf5240f17ae85cfdcab51ea5e1b4e2311b55af4c7bbdfe82c6ed5ea180a5c8b254ccfd')
source=(https://download.osgeo.org/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.xz
https://github.com/OSGeo/gdal/commit/cbed9fc9.patch
https://github.com/OSGeo/gdal/commit/ec33f6d6.patch)
b2sums=('646aa91283e7228a054221d120bddb456c8b898f9155edd289f2b2e0bf8706fa3045a98d26e4cf5ba5dba6d8c1c7f0a7f4aaaded9457481a65910c2d313c8f9d'
'e75eb8edb5507450ded3bca618a03a283ba49791df416b0a7732f859d93124704e8508fcd11271bbbeef299d05d3ad2df9e03bd805580445407cb6b8c003a98e'
'5c0abcfcfbb0ca2a96156abb4c7daaf4860fa30d553228172eb8def8b2f95e93bae9217974fba9621dcf9921e906a5ada9b710b1c0b29e7e580191a0a56a76e2')
prepare() {
# Fix build with podofo-0.9
sed -e 's|podofo.h|podofo/podofo.h|' -i $pkgbase-$pkgver/frmts/pdf/pdfsdk_headers.h
# Fix build with libxml2 2.12
patch -d $pkgbase-$pkgver -p1 < cbed9fc9.patch
patch -d $pkgbase-$pkgver -p1 < ec33f6d6.patch
}
build() {
@ -79,16 +84,14 @@ build() {
-DGDAL_USE_WEBP=ON \
-DGDAL_USE_XERCESC=ON \
-DGDAL_USE_ZLIB=ON \
-DGDAL_USE_ZSTD=ON \
-DPODOFO_INCLUDE_DIR=/usr/include/podofo-0.9 \
-DPODOFO_LIBRARY=/usr/lib/podofo-0.9/libpodofo.so
-DGDAL_USE_ZSTD=ON
make -C build
}
package_gdal () {
depends=(proj blosc crypto++ curl libdeflate expat libfreexl geos libgeotiff
giflib libjpeg-turbo json-c xz libxml2 lz4 unixodbc ocl-icd openssl
pcre2 libpng qhull libspatialite sqlite libtiff xerces-c zlib zstd)
pcre2 libpng qhull libspatialite sqlite libtiff xerces-c zlib zstd libaec)
optdepends=('cfitsio: FITS support'
'hdf5: HDF5 support'
'libheif: HEIF support'