[arch-commits] Commit in python-dephell-links/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 16:53:46 UTC 2020
Date: Monday, November 9, 2020 @ 16:53:46
Author: foutrelis
Revision: 747672
archrelease: copy trunk to community-staging-any
Added:
python-dephell-links/repos/community-staging-any/
python-dephell-links/repos/community-staging-any/PKGBUILD
(from rev 747670, python-dephell-links/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-dephell-links/repos/community-staging-any/PKGBUILD (from rev 747670, python-dephell-links/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 16:53:46 UTC (rev 747672)
@@ -0,0 +1,42 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell_links
+pkgname=python-dephell-links
+pkgver=0.1.4
+pkgrel=4
+pkgdesc="Parse dependency links"
+arch=('any')
+url="https://github.com/dephell/${_pkgname}"
+license=('MIT')
+depends=('python-attrs')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('421db613fb291bc723aafe3e331e1691d15b8753bb0ded63e8e991e8422ceaf6')
+b2sums=('e5af5d8f139fbd05b092aa73953453ee9af57df73998ab8a05e0b89cfc7476197db634f99d79a868dcee7c962698ec9c6e5ed3cf12b5fa9fbc99be93a155a114')
+
+prepare() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ # pycache slipped into release tarballs
+ find . -name \*.pyc -delete
+}
+
+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