[arch-commits] Commit in (4 files)

Eli Schwartz eschwartz at archlinux.org
Tue May 28 19:59:36 UTC 2019


    Date: Tuesday, May 28, 2019 @ 19:59:36
  Author: eschwartz
Revision: 473049

addpkg: python-dephell-archive 0.1.5-1

part of the "dephell" tool

Added:
  python-dephell-archive/
  python-dephell-archive/repos/
  python-dephell-archive/trunk/
  python-dephell-archive/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Added: python-dephell-archive/trunk/PKGBUILD
===================================================================
--- python-dephell-archive/trunk/PKGBUILD	                        (rev 0)
+++ python-dephell-archive/trunk/PKGBUILD	2019-05-28 19:59:36 UTC (rev 473049)
@@ -0,0 +1,42 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell-archive
+pkgname=python-dephell-archive
+pkgver=0.1.5
+pkgrel=1
+pkgdesc="Pathlib for archives"
+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=('d1cff5a962cb7b5862aaddfef4d1ec77684ee69652ba3d75612c7e4bb9c7bb39')
+b2sums=('211bf6acfaedaab8a8c72ad29bb63dc8db93fc10730f6f2543303e2a7b96edd03b71ed43a3e9612d52eec8cf706adf0ac5d51542f8c39d0aa8638b7097763b96')
+
+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