summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel Moch2019-10-17 20:50:17 -0400
committerDaniel Moch2019-10-17 21:06:46 -0400
commit6460d92fd4cc29ab34f22ba5f0d53f79d77158d1 (patch)
treeb6c4931836bade4576c2a054dd872cdc87ba82e6 /PKGBUILD
downloadaur-python-blurhash.tar.gz
upgpkg: python-blurhash 1.1.4-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..84db6f1b5d4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Daniel Moch <daniel@danielmoch.com>
+_name=blurhash
+pkgname=python-blurhash
+pkgver=1.1.4
+pkgrel=1
+pkgdesc='Pure-Python implementation of the blurhash algorithm'
+arch=('any')
+url="https://github.com/halcy/blurhash-python"
+license=('MIT')
+depends=(python)
+makedepends=(python-setuptools git)
+checkdepends=(python-pillow
+ python-numpy
+ python-pytest-cov)
+_commit=22e081ef1c24da1bb5c5eaa2c1d6649724deaef8
+source=("git+${url}.git#commit=${_commit}")
+sha256sums=('SKIP')
+
+build() {
+ cd blurhash-python
+ python setup.py build
+}
+
+check() {
+ cd blurhash-python
+ pytest
+}
+
+package() {
+ cd blurhash-python
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ python ./setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+}
+
+# vim: set sts=2 sw=2 ft=PKGBUILD et: