blob: c604c63ece9522e619e0d9e071010493fbfd4127 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: quietvoid <tcChlisop0@gmail.com>
_libname=pybind11-rdp
pkgname="python-${_libname}"
pkgver=0.1.5
pkgrel=1
pkgdesc='C++ implementation of the Ramer-Douglas-Peucker algorithm (binding to python via pybind11)'
_rootdir="${_libname}-${pkgver}"
arch=('x86_64')
url='https://github.com/cubao/pybind11-rdp'
license=('BSD')
depends=('python-numpy')
makedepends=('git' 'cmake' 'python-build' 'python-installer' 'python-wheel' 'python-scikit-build-core')
provides=('python-pybind11-rdp')
conflicts=('python-pybind11-rdp')
source=("${_rootdir}::git+https://github.com/cubao/pybind11-rdp.git#tag=v${pkgver}")
sha256sums=('SKIP')
prepare() {
cd "${_rootdir}"
git submodule update --init --recursive
}
build() {
cd "${_rootdir}"
python -m build --wheel --no-isolation
}
package() {
cd "${_rootdir}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|