[arch-commits] Commit in python-whichcraft/repos (2 files)

David Runge dvzrv at archlinux.org
Sat Mar 14 08:40:54 UTC 2020


    Date: Saturday, March 14, 2020 @ 08:40:54
  Author: dvzrv
Revision: 596562

archrelease: copy trunk to community-any

Added:
  python-whichcraft/repos/community-any/
  python-whichcraft/repos/community-any/PKGBUILD
    (from rev 596561, python-whichcraft/trunk/PKGBUILD)

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

Copied: python-whichcraft/repos/community-any/PKGBUILD (from rev 596561, python-whichcraft/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-03-14 08:40:54 UTC (rev 596562)
@@ -0,0 +1,41 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=whichcraft
+pkgname=python-whichcraft
+pkgver=0.6.1
+pkgrel=2
+pkgdesc="This package provides cross-platform cross-python shutil.which functionality"
+arch=('any')
+url="https://github.com/cookiecutter/whichcraft"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('85075289ae5cacb8f45a23776fcbbef3f62a4d8bdf110e1d3f9f25fb4ba44117c459d5f42dec7fd7f5c9680963d6aa1c1e31fc5b9fbe6127395698468f8d77fb')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 {AUTHORS,CONTRIBUTING,HISTORY,README}.rst \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list