mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-19 15:41:51 +01:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# Contributor: Bradley J Chambers <brad.chambers@gmail.com>
|
|
# Maintainer: Bradley J Chambers <brad.chambers@gmail.com>
|
|
pkgname=py-pdal
|
|
pkgver=2.0.0
|
|
pkgrel=1
|
|
pkgdesc="PDAL Python bindings"
|
|
url="https://github.com/pdal/python"
|
|
arch="x86 x86_64"
|
|
license="BSD"
|
|
makedepends="cython python2-dev py-setuptools py-packaging pdal-dev>=1.7.2-r1 pdal>=1.7.2-r1 py-numpy-dev libxml2-dev"
|
|
install=""
|
|
subpackages="py2-${pkgname#py-}:_py2"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/PDAL/python/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/python-$pkgver"
|
|
|
|
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="efb3701e8de01f59ec1cfc0a39920c0e6a234d74e4e68dcd3ce4f82f95c27d759786b16c41e3fc4ee61846c33b5ecc024455bab9efd493e795c8687833a47e17 py-pdal-2.0.0.tar.gz"
|