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

Felix Yan felixonmars at archlinux.org
Tue Nov 10 04:00:29 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:00:29
  Author: felixonmars
Revision: 748346

archrelease: copy trunk to community-staging-any

Added:
  python-nodeenv/repos/community-staging-any/
  python-nodeenv/repos/community-staging-any/PKGBUILD
    (from rev 748343, python-nodeenv/trunk/PKGBUILD)

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

Copied: python-nodeenv/repos/community-staging-any/PKGBUILD (from rev 748343, python-nodeenv/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:00:29 UTC (rev 748346)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-nodeenv
+pkgver=1.5.0
+pkgrel=2
+pkgdesc="Node.js virtual environment builder"
+url="https://github.com/ekalinin/nodeenv"
+license=('BSD')
+arch=('any')
+depends=('python' 'make')
+optdepends=('nodejs: for --node=system')
+makedepends=('python-setuptools')
+checkdepends=('nodejs' 'python-pytest-runner' 'python-coverage' 'python-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ekalinin/nodeenv/archive/$pkgver.tar.gz")
+sha512sums=('645911f6ab173bf0e7b68fca9741f1deeb2d486dea99f43d542f86b2ac34439e03da18a6e4de49e3dd45fb89b3c87005b184ca4b73aa0549e75a86191e045e02')
+
+build() {
+  cd nodeenv-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd nodeenv-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd nodeenv-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list