[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at gemini.archlinux.org
Fri May 13 07:17:53 UTC 2022
Date: Friday, May 13, 2022 @ 07:17:53
Author: felixonmars
Revision: 1200576
addpkg: python-autocommand 2.2.1-1
Added:
python-autocommand/
python-autocommand/repos/
python-autocommand/trunk/
python-autocommand/trunk/PKGBUILD
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Added: python-autocommand/trunk/PKGBUILD
===================================================================
--- python-autocommand/trunk/PKGBUILD (rev 0)
+++ python-autocommand/trunk/PKGBUILD 2022-05-13 07:17:53 UTC (rev 1200576)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-autocommand
+pkgver=2.2.1
+pkgrel=1
+pkgdesc="A library to create a command-line program from a function"
+url="https://github.com/Lucretiel/autocommand"
+license=('LGPL')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://github.com/Lucretiel/autocommand/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+ https://github.com/Lucretiel/autocommand/commit/031c9750c74e3313b954b09e3027aaa6595649bb.patch)
+sha512sums=('6ab6b7f712c9e57cefb25299e2f98359bb39fd55439fc40a5c9ed752ff54f664c9badf044418576c0dc47b1b76114d96946b2df5343b27eeb87eb24213a33a26'
+ '3535f6f62cb2803a218d92b0d5c77895633afaae0b17e2d82cb15b5d7fdad84afa95f91a2c3a739fb61620abdd25851064f84e1351793e4ea1e4e67f03c58ff0')
+
+prepare() {
+ cd autocommand-$pkgver
+ # https://github.com/Lucretiel/autocommand/issues/20
+ patch -p1 -i ../031c9750c74e3313b954b09e3027aaa6595649bb.patch
+}
+
+build() {
+ cd autocommand-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd autocommand-$pkgver
+ PYTHONPATH="$PWD"/build/lib pytest
+}
+
+package() {
+ cd autocommand-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list