aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/py-pdal/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/py-pdal/APKBUILD b/testing/py-pdal/APKBUILD
new file mode 100644
index 0000000000..ad83146719
--- /dev/null
+++ b/testing/py-pdal/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Bradley J Chambers <brad.chambers@gmail.com>
+# Maintainer: Bradley J Chambers <brad.chambers@gmail.com>
+pkgname=py-pdal
+pkgver=1.5.0
+pkgrel=0
+pkgdesc="PDAL Python bindings"
+url="https://github.com/pdal/pdal"
+arch="x86 x86_64"
+license="BSD"
+makedepends="cython-dev python2-dev py-setuptools py-packaging pdal-dev pdal py-numpy-dev libxml2-dev"
+install=""
+subpackages="py2-${pkgname#py-}:_py2"
+source="pdal-$pkgver.tar.gz::https://github.com/${pkgname#py-}/${pkgname#py-}/archive/$pkgver.tar.gz"
+builddir="$srcdir/PDAL-$pkgver/python"
+
+build() {
+ cd "$builddir"
+ python2 setup.py build
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ depends="${depends//^py-/py2-}"
+ _py python2
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+sha512sums="666c7f45fbe22d2d7a913b2ffa171a9727cdcd41856f52035ab0b4aec26c5569098710276f1144802d07bbc9e2656209ce1b2ff363a036c8c2d13ef2771c0657 pdal-1.5.0.tar.gz"