blob: 8c8bcc18d8d62f471b1404ce355056040ac54ee4 (
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
35
36
37
38
|
# Maintainer: quietvoid <tcChlisop0@gmail.com>
_libname=pybind11-rdp
pkgname="python-${_libname}"
pkgver=0.1.4
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=('pybind11')
makedepends=('git' 'cmake' 'python-build' 'python-installer' 'python-wheel')
provides=('python-pybind11-rdp')
conflicts=('python-pybind11-rdp')
source=("${_rootdir}::git+https://github.com/cubao/pybind11-rdp.git#tag=v${pkgver}"
'010-pybind11-rdp-remove-unwanted-pip-build-deps.patch')
sha256sums=('SKIP'
'f48ac993fadc956bae9e095209f4ed61124a3e1e6c1560b85a0ced4acf1a51f1')
prepare() {
cd "${_rootdir}"
patch -Np1 -i "${srcdir}/010-pybind11-rdp-remove-unwanted-pip-build-deps.patch"
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"
}
|