[arch-commits] Commit in python-ziafont/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Wed Aug 4 20:45:33 UTC 2021


    Date: Wednesday, August 4, 2021 @ 20:45:33
  Author: felixonmars
Revision: 993768

archrelease: copy trunk to community-any

Added:
  python-ziafont/repos/community-any/
  python-ziafont/repos/community-any/PKGBUILD
    (from rev 993767, python-ziafont/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: python-ziafont/repos/community-any/PKGBUILD (from rev 993767, python-ziafont/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-08-04 20:45:33 UTC (rev 993768)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-ziafont
+pkgver=0.2
+pkgrel=1
+pkgdesc="Convert TTF/OTF font glyphs to SVG paths"
+url="https://ziafont.readthedocs.io/"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-nbval' 'python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://bitbucket.org/cdelker/ziafont/get/$pkgver.tar.bz2")
+sha512sums=('c5c1d8a9a7994cb585a035e8df865c388267c53138d655ccacd7fab86bea2355bcea15b9b8ab0a669b0b8f5bf40cbf2a8467fffa4b9a608c46a860087b0c09f0')
+
+prepare() {
+  mv cdelker-ziafont-* ziafont-$pkgver
+}
+
+build() {
+  cd ziafont-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd ziafont-$pkgver
+  python setup.py pytest --addopts --nbval || echo "Tests failed"
+}
+
+package() {
+  cd ziafont-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list