archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-nodeenv / trunk / PKGBUILD
blob9aad1b7f0e2a164611350f37aacf82c37ca99564
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-nodeenv
4 pkgver=1.7.0
5 pkgrel=3
6 pkgdesc="Node.js virtual environment builder"
7 url="https://github.com/ekalinin/nodeenv"
8 license=('BSD')
9 arch=('any')
10 depends=('python-setuptools' 'make')
11 optdepends=('nodejs: for --node=system')
12 checkdepends=('nodejs' 'python-pytest-runner' 'python-coverage' 'python-mock')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/ekalinin/nodeenv/archive/$pkgver.tar.gz")
14 sha512sums=('1e3e4068591d51d8915de73ab0f82f04620ca628152ec5a454e7ad18001ff20b698f9818353c44b80200ab529d95fa3196a3dbc85f0c497ea49f60eaa5dc9ea7')
16 build() {
17   cd nodeenv-$pkgver
18   python setup.py build
21 check() {
22   cd nodeenv-$pkgver
23   python setup.py pytest
26 package() {
27   cd nodeenv-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
30   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/