[arch-commits] Commit in (4 files)
Jelle van der Waa
jelle at archlinux.org
Fri Dec 27 16:40:05 UTC 2019
Date: Friday, December 27, 2019 @ 16:40:04
Author: jelle
Revision: 543146
initial commit
new dep of python-dephell
Added:
python-dephell_argarse/
python-dephell_argarse/repos/
python-dephell_argarse/trunk/
python-dephell_argarse/trunk/PKGBUILD
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Added: python-dephell_argarse/trunk/PKGBUILD
===================================================================
--- python-dephell_argarse/trunk/PKGBUILD (rev 0)
+++ python-dephell_argarse/trunk/PKGBUILD 2019-12-27 16:40:04 UTC (rev 543146)
@@ -0,0 +1,37 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+_pkgname=dephell_argparse
+pkgname=python-dephell_argparse
+pkgver=0.1.2
+pkgrel=1
+pkgdesc='Argparse with groups, commands, colors, and fuzzy matching'
+arch=(any)
+license=('MIT')
+url='https://github.com/dephell/dephell_argparse'
+depends=(python)
+makedepends=(python-dephell)
+checkdepends=(python-pytest)
+source=($pkgname-$pkgver.tar.gz::https://github.com/dephell/dephell_argparse/archive/v.$pkgver.tar.gz)
+sha512sums=('8750cfcc484956a16209b1fc539a031a43fb308fa06a90442b54f486fee69ef09da0f5262072260a9b8de2654d45c14aa971a1aaa59093759bf06dd9b65f65a4')
+
+prepare() {
+ cd ${_pkgname}-v.${pkgver}
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+ cd ${_pkgname}-v.${pkgver}
+ python3 setup.py build
+}
+
+check() {
+ cd ${_pkgname}-v.${pkgver}
+ python -m pytest tests
+}
+
+package() {
+ cd ${_pkgname}-v.${pkgver}
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list