extra/gdal to 3.8.5-5

This commit is contained in:
Kevin Mihelich 2024-05-09 12:50:44 +00:00
parent 951c4445f3
commit 17cf70b64a
2 changed files with 13 additions and 5 deletions

View file

@ -1,7 +1,7 @@
pkgbase = gdal pkgbase = gdal
pkgdesc = A translator library for raster and vector geospatial data formats pkgdesc = A translator library for raster and vector geospatial data formats
pkgver = 3.8.5 pkgver = 3.8.5
pkgrel = 4 pkgrel = 5
url = https://gdal.org/ url = https://gdal.org/
changelog = gdal.changelog changelog = gdal.changelog
arch = x86_64 arch = x86_64
@ -53,7 +53,9 @@ pkgbase = gdal
makedepends = zstd makedepends = zstd
makedepends = libaec makedepends = libaec
source = https://download.osgeo.org/gdal/3.8.5/gdal-3.8.5.tar.xz source = https://download.osgeo.org/gdal/3.8.5/gdal-3.8.5.tar.xz
source = https://github.com/OSGeo/gdal/commit/7b526b12.patch
b2sums = 2c5f9b3fa1c3d5d7879c2aa1c95f82c6360b35a259443a8ad68ff8f471f4efa8d2fd7935c57317ee5e94789244067706967f9c5df413bccd2556b5790d51d349 b2sums = 2c5f9b3fa1c3d5d7879c2aa1c95f82c6360b35a259443a8ad68ff8f471f4efa8d2fd7935c57317ee5e94789244067706967f9c5df413bccd2556b5790d51d349
b2sums = 801eb649c20ef81d7590888589d4049eab4505fac6efbe1718d8bc9e01a35390b9d8cad090c3421ff90d769fe3f5aec4d1641409ecc5a434ba68c4c5d30eec85
pkgname = gdal pkgname = gdal
depends = proj depends = proj

View file

@ -11,7 +11,7 @@
pkgbase=gdal pkgbase=gdal
pkgname=(gdal python-gdal) pkgname=(gdal python-gdal)
pkgver=3.8.5 pkgver=3.8.5
pkgrel=4 pkgrel=5
pkgdesc="A translator library for raster and vector geospatial data formats" pkgdesc="A translator library for raster and vector geospatial data formats"
arch=(x86_64) arch=(x86_64)
url="https://gdal.org/" url="https://gdal.org/"
@ -25,13 +25,19 @@ makedepends=(cmake opencl-headers python-setuptools python-numpy
# armadillo basisu brunsli lerc libkml qb3 rasterlite2 sfcgal tiledb # armadillo basisu brunsli lerc libkml qb3 rasterlite2 sfcgal tiledb
# ogdi # ogdi
changelog=$pkgbase.changelog changelog=$pkgbase.changelog
source=(https://download.osgeo.org/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.xz) source=(https://download.osgeo.org/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.xz
b2sums=('2c5f9b3fa1c3d5d7879c2aa1c95f82c6360b35a259443a8ad68ff8f471f4efa8d2fd7935c57317ee5e94789244067706967f9c5df413bccd2556b5790d51d349') https://github.com/OSGeo/gdal/commit/7b526b12.patch)
b2sums=('2c5f9b3fa1c3d5d7879c2aa1c95f82c6360b35a259443a8ad68ff8f471f4efa8d2fd7935c57317ee5e94789244067706967f9c5df413bccd2556b5790d51d349'
'801eb649c20ef81d7590888589d4049eab4505fac6efbe1718d8bc9e01a35390b9d8cad090c3421ff90d769fe3f5aec4d1641409ecc5a434ba68c4c5d30eec85')
prepare() {
patch -d $pkgbase-$pkgver -p1 < 7b526b12.patch # Fix build with C++20
}
build() { build() {
cmake -B build -S $pkgbase-$pkgver \ cmake -B build -S $pkgbase-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_STANDARD=17 \ -DCMAKE_CXX_STANDARD=20 \
-DENABLE_IPO=OFF \ -DENABLE_IPO=OFF \
-DBUILD_PYTHON_BINDINGS=ON \ -DBUILD_PYTHON_BINDINGS=ON \
-DGDAL_ENABLE_PLUGINS=ON \ -DGDAL_ENABLE_PLUGINS=ON \