void-packages/srcpkgs/libgdal/template
2018-10-26 02:49:04 -03:00

41 lines
1.2 KiB
Bash

# Template file for 'libgdal'
pkgname=libgdal
version=2.3.2
revision=2
wrksrc=gdal-${version}
build_style=gnu-configure
configure_args="--with-liblzma --with-poppler"
hostmakedepends="gettext-devel pkg-config python-numpy json-c-devel"
makedepends="freexl-devel geos-devel jasper-devel json-c-devel libcurl-devel
libopenexr-devel libopenjpeg2-devel libqhull-devel libwebp-devel libxml2-devel
libzstd-devel opencl-headers poppler-glib-devel sqlite-devel"
short_desc="Geospatial Data Abstraction Library"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="MIT"
homepage="http://www.gdal.org/"
distfiles="http://download.osgeo.org/gdal/${version}/gdal-${version}.tar.xz"
checksum=3f6d78fe8807d1d6afb7bed27394f19467840a82bc36d65e66316fa0aa9d32a4
post_install() {
vinstall gdal.pc 644 usr/lib/pkgconfig
vlicense LICENSE.TXT
}
libgdal-tools_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - tools"
pkg_install() {
vmove usr/bin
}
}
libgdal-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}