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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:47:33 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:47:33
  Author: felixonmars
Revision: 1059300

archrelease: copy trunk to community-staging-any

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

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

Copied: python-nodeenv/repos/community-staging-any/PKGBUILD (from rev 1059298, python-nodeenv/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:47:33 UTC (rev 1059300)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-nodeenv
+pkgver=1.6.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=('abf4fe55ba478570a32ff3bb24fc3c60ba2d100822f8295c4c55c301ccdff2dc2d20ef76990ea3ac203e30db8a1e85f3ef2df671f87c0cf7305cf1aeb788efdd')
+
+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