summaryrefslogtreecommitdiff
path: root/python-mapbox-earcut
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-01-15 20:37:54 +0100
committerErich Eckner <erich.eckner.ext@bestsecret.com>2023-01-18 10:15:05 +0100
commitae5ef4980f638bf97eafb207fd08389cc8def466 (patch)
treed0547f25684e7d86c8343ee119ce9f1f860f4bb7 /python-mapbox-earcut
parentad4829dadc13e7289ad112b15415c0685a4135d2 (diff)
downloadarchlinuxewe-ae5ef4980f638bf97eafb207fd08389cc8def466.tar.xz
python-mapbox-earcut new
Diffstat (limited to 'python-mapbox-earcut')
-rw-r--r--python-mapbox-earcut/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/python-mapbox-earcut/PKGBUILD b/python-mapbox-earcut/PKGBUILD
new file mode 100644
index 000000000..a520b022d
--- /dev/null
+++ b/python-mapbox-earcut/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Groctel <aur@taxorubio.com>
+
+_name=mapbox_earcut_python
+
+pkgname=python-mapbox-earcut
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="Python bindings for the C++ implementation of the Mapbox Earcut library."
+
+arch=('any')
+license=('custom')
+url="https://github.com/skogler/mapbox_earcut_python"
+
+source=("$url/archive/refs/tags/v$pkgver.tar.gz")
+sha512sums=('cdb32585cbaf74c15e59af0ae70d983dd2f9bc9cfe1b59b3eadc4d442f7d962241854b589a035deae67cacd9334833b911d0981f0d417fe587348fc7d24f0c0a')
+
+depends=('python')
+makedepends=(
+ 'cmake'
+ 'git'
+ 'pybind11'
+ 'python-pip'
+ 'python-setuptools'
+)
+
+prepare ()
+{
+ cd "$srcdir/$_name-$pkgver"
+ git clone https://github.com/pybind/pybind11
+}
+
+build ()
+{
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py build
+}
+
+package ()
+{
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}