diff options
author | Trougnouf (Benoit Brummer) | 2024-04-02 21:16:20 +0200 |
---|---|---|
committer | Trougnouf (Benoit Brummer) | 2024-04-02 21:16:20 +0200 |
commit | defa39da068faea7fef2da4b2e59304c2fa1509e (patch) | |
tree | 8247e41a9568bed77fbfd97b6f51ed74adce0aea | |
download | aur-defa39da068faea7fef2da4b2e59304c2fa1509e.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fc2bc7b46305 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = python-h3 + pkgdesc = Hexagonal Hierarchical Geospatial Indexing System in Python + pkgver = 3.7.7 + pkgrel = 1 + url = https://github.com/uber/h3-py + arch = any + license = Apache + makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-scikit-build + makedepends = cmake + makedepends = flake8 + makedepends = python-cmake-build-extension + makedepends = python-setuptools + depends = python + depends = cython + source = git+https://github.com/uber/h3-py.git#tag=v3.7.7 + sha256sums = c6b42cfc785d4c43830be52be99bafedafcaee7cb8dd059e8448ce558516008a + +pkgname = python-h3 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..692fe3f54356 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Benoit Brummer (Trougnouf) <trougnouf@gmail.com> + +_name='h3-py' +pkgname=('python-h3') +pkgdesc="Hexagonal Hierarchical Geospatial Indexing System in Python" +pkgver=3.7.7 +pkgrel=1 +url="https://github.com/uber/${_name}" +license=('Apache') +arch=('any') +depends=('python' 'cython') +makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-scikit-build' 'cmake' 'flake8' 'python-cmake-build-extension' 'python-setuptools') +source=("git+${url}.git#tag=v${pkgver}") +sha256sums=('c6b42cfc785d4c43830be52be99bafedafcaee7cb8dd059e8448ce558516008a') + +prepare() { + cd "${srcdir}/${_name}" + git submodule update --init --recursive +} + +build() { + cd "${srcdir}/${_name}" + python setup.py build +} + +package() { + cd "${srcdir}/${_name}" + python setup.py install --root="$pkgdir" --optimize=1 +} |