[arch-commits] Commit in (4 files)

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


    Date: Saturday, March 14, 2020 @ 08:40:06
  Author: dvzrv
Revision: 596561

Adding python-whichcraft as depends for python-cookiecutter, a depends for molecule.

Added:
  python-whichcraft/
  python-whichcraft/repos/
  python-whichcraft/trunk/
  python-whichcraft/trunk/PKGBUILD

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

Added: python-whichcraft/trunk/PKGBUILD
===================================================================
--- python-whichcraft/trunk/PKGBUILD	                        (rev 0)
+++ python-whichcraft/trunk/PKGBUILD	2020-03-14 08:40:06 UTC (rev 596561)
@@ -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