[arch-commits] Commit in python-dephell-argparse/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Tue Nov 30 16:04:15 UTC 2021
Date: Tuesday, November 30, 2021 @ 16:04:15
Author: foutrelis
Revision: 1057817
archrelease: copy trunk to community-staging-any
Added:
python-dephell-argparse/repos/community-staging-any/
python-dephell-argparse/repos/community-staging-any/PKGBUILD
(from rev 1057816, python-dephell-argparse/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-dephell-argparse/repos/community-staging-any/PKGBUILD (from rev 1057816, python-dephell-argparse/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 16:04:15 UTC (rev 1057817)
@@ -0,0 +1,36 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+_pkgname=dephell_argparse
+pkgname=python-dephell-argparse
+pkgver=0.1.3
+pkgrel=4
+pkgdesc='Argparse with groups, commands, colors, and fuzzy matching'
+arch=('any')
+url="https://github.com/dephell/${_pkgname}"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha512sums=('76aa2ec3f15ef2235023b6863a4faf7d53cf8d20794ea6882af4d95cd4799b9f78e7c8f75b6885b9b61a7edfff6aae982684dcd142c7241e922eefdf5757618c')
+b2sums=('9c0f365ea9200b1ceba8111b86f5f35cc9791819267bd661551ba646e1c2135a4718adb77303e3c5bdd9cdfbff08cae2fe0d1c43355187f97e97c08779c2f1f8')
+
+build() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python -m pytest
+}
+
+package() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list