[arch-commits] Commit in python-dephell-specifier/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 16:41:19 UTC 2019
Date: Friday, October 25, 2019 @ 16:41:19
Author: foutrelis
Revision: 519539
archrelease: copy trunk to community-staging-any
Added:
python-dephell-specifier/repos/community-staging-any/
python-dephell-specifier/repos/community-staging-any/PKGBUILD
(from rev 519538, python-dephell-specifier/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-dephell-specifier/repos/community-staging-any/PKGBUILD (from rev 519538, python-dephell-specifier/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 16:41:19 UTC (rev 519539)
@@ -0,0 +1,42 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell_specifier
+pkgname=python-dephell-specifier
+pkgver=0.2.1
+pkgrel=2
+pkgdesc="Work with version specifiers"
+arch=('any')
+url="https://github.com/dephell/${_pkgname}"
+license=('MIT')
+depends=('python-packaging')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('c2ec7e62a2406960e19eb6db0f11918d82af64995ee1f26fe00d013791ae9758')
+b2sums=('8ede7f342e841f430c6ba58f8c43cae3b6c5e2607fcb71d8cdca1237009ed5022f83de419e59bfc1c94eaec6e8a7be59bd753fcda185bec70cc4f282303002c0')
+
+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