[arch-commits] Commit in python-uc-micro-py/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:25:06 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:25:06
  Author: felixonmars
Revision: 1058235

archrelease: copy trunk to community-staging-any

Added:
  python-uc-micro-py/repos/community-staging-any/
  python-uc-micro-py/repos/community-staging-any/PKGBUILD
    (from rev 1058233, python-uc-micro-py/trunk/PKGBUILD)

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

Copied: python-uc-micro-py/repos/community-staging-any/PKGBUILD (from rev 1058233, python-uc-micro-py/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:25:06 UTC (rev 1058235)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=uc.micro-py
+pkgname=python-uc-micro-py
+pkgver=1.0.1
+pkgrel=2
+pkgdesc='Micro subset of unicode data files for linkify-it-py projects'
+arch=('any')
+url='https://github.com/tsutsu3/uc.micro-py'
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('c6747943bd4ac9a3b7bf8d02a52947df04d4d4986311da7fa77d6ae010d512de9ad429d78a436a2f8e11c6f2d8dde00bea70ea0b1237a35e5b16ed4ad6b430fe')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python -m pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list