[arch-commits] Commit in python-mdurl/repos (community-any community-any/PKGBUILD)
Filipe Laíns
ffy00 at gemini.archlinux.org
Sat Sep 3 18:43:17 UTC 2022
Date: Saturday, September 3, 2022 @ 18:43:16
Author: ffy00
Revision: 1292676
archrelease: copy trunk to community-any
Added:
python-mdurl/repos/community-any/
python-mdurl/repos/community-any/PKGBUILD
(from rev 1292675, python-mdurl/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-mdurl/repos/community-any/PKGBUILD (from rev 1292675, python-mdurl/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-09-03 18:43:16 UTC (rev 1292676)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=mdurl
+pkgname=python-$_pkgname
+pkgver=0.1.2
+pkgrel=1
+pkgdesc='URL utilities for markdown-it'
+arch=('any')
+url='https://github.com/executablebooks/mdurl'
+license=('MIT')
+depends=('python-uc-micro-py')
+makedepends=('python-build' 'python-installer' 'python-flit' 'python-wheel')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('e301ca3ab6d80df1ad28b9c2725d66b6e6cf139d93e5f7fd2a70333678616a3f6db64f15250972eee3cd1cf1eaff6ec587415629e6802dcf07995edff6865ff2')
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python -m build -nw
+}
+
+check() {
+ cd $_pkgname-$pkgver
+
+ PYTHONPATH=src python -m pytest
+}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python -m installer -d "$pkgdir" dist/*.whl
+
+ 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