From 412ad2f4941f11f8128df1dd71e3302388e88c7f Mon Sep 17 00:00:00 2001 From: Arjan Mossel Date: Sun, 12 Nov 2023 17:20:28 +0100 Subject: [PATCH] New package: libpdal-2.5.6 --- srcpkgs/libpdal-devel | 1 + srcpkgs/libpdal/libpdal-devel | 1 + srcpkgs/libpdal/template | 42 +++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 120000 srcpkgs/libpdal-devel create mode 120000 srcpkgs/libpdal/libpdal-devel create mode 100644 srcpkgs/libpdal/template diff --git a/srcpkgs/libpdal-devel b/srcpkgs/libpdal-devel new file mode 120000 index 00000000000..65613a704dd --- /dev/null +++ b/srcpkgs/libpdal-devel @@ -0,0 +1 @@ +libpdal \ No newline at end of file diff --git a/srcpkgs/libpdal/libpdal-devel b/srcpkgs/libpdal/libpdal-devel new file mode 120000 index 00000000000..656a16af8e2 --- /dev/null +++ b/srcpkgs/libpdal/libpdal-devel @@ -0,0 +1 @@ +libpdal-devel \ No newline at end of file diff --git a/srcpkgs/libpdal/template b/srcpkgs/libpdal/template new file mode 100644 index 00000000000..812729bbd7c --- /dev/null +++ b/srcpkgs/libpdal/template @@ -0,0 +1,42 @@ +# Template file for 'libpdal' +pkgname=libpdal +version=2.5.6 +revision=1 +build_style=cmake +build_helper="qemu" +hostmakedepends="pkg-config" +makedepends="libcurl-devel libgdal-devel libgeotiff-devel libunwind-devel + libxml2-devel python3-devel tiff-devel zlib-devel" +checkdepends="libgdal-tools" +short_desc="Point Data Abstraction Library" +maintainer="Arjan Mossel " +license="BSD-3-Clause" +homepage="https://pdal.io/" +distfiles="https://github.com/PDAL/PDAL/releases/download/${version}/PDAL-${version}-src.tar.gz" +checksum=c4f51e7bb9843ecc5d51c47aad87d8ddbd919111fb49222294c5835be7c1fa85 + +do_check() { + cd build + case "$XBPS_TARGET_MACHINE" in + i686*) ctest -E \ + "pdal_(app_plugin|file_utils|filters_colorinterp|filters_stats|io_optech)_test" ;; + x86_64*) ctest -E 'pdal_app_plugin_test' ;; + *) ctest ;; + esac +} + +post_install() { + vlicense LICENSE.txt +} + +libpdal-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/bin/pdal-config + vmove usr/include + vmove usr/lib/pkgconfig + vmove usr/lib/cmake + vmove "usr/lib/*.so" + } +}