diff options
author | icasdri | 2016-08-08 13:23:42 -0400 |
---|---|---|
committer | icasdri | 2016-08-08 13:23:42 -0400 |
commit | 7cd3e834ae058c18976587593d6ca4705a71d954 (patch) | |
tree | 46c0f4f000077443df2f5f323c6aa1ba661c008b | |
parent | 00cf7cc6517af90e1a36f978d7e48332c9659eee (diff) | |
download | aur-7cd3e834ae058c18976587593d6ca4705a71d954.tar.gz |
Use !emptdirs option to get rid of extraneous /usr/etc, instead of explicit rmdir
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 5 insertions, 4 deletions
@@ -1,15 +1,16 @@ # Generated by mksrcinfo v8 -# Mon Aug 8 17:18:40 UTC 2016 +# Mon Aug 8 17:23:19 UTC 2016 pkgbase = nodejs-mathjs pkgdesc = An extensive math library for JS which also includes a powerful CLI interface pkgver = 3.4.0 - pkgrel = 2 + pkgrel = 3 url = https://www.npmjs.com/package/mathjs arch = any license = Apache makedepends = npm depends = nodejs noextract = mathjs-3.4.0.tgz + options = !emptydirs source = https://registry.npmjs.org/mathjs/-/mathjs-3.4.0.tgz sha384sums = 1cd1c1dff9cc03dde966568d8ced3b49b6e0b77f1abb72cf48f9e7947d9c39ae1fd2d52ec190b17c7e7b7b7058f1a00f @@ -3,13 +3,14 @@ _npmname=mathjs pkgname=nodejs-mathjs pkgver=3.4.0 -pkgrel=2 +pkgrel=3 pkgdesc="An extensive math library for JS which also includes a powerful CLI interface" arch=(any) url="https://www.npmjs.com/package/${_npmname}" license=('Apache') depends=('nodejs') makedepends=('npm') +options=('!emptydirs') source=("https://registry.npmjs.org/${_npmname}/-/${_npmname}-${pkgver}.tgz") noextract=(${_npmname}-${pkgver}.tgz) sha384sums=('1cd1c1dff9cc03dde966568d8ced3b49b6e0b77f1abb72cf48f9e7947d9c39ae1fd2d52ec190b17c7e7b7b7058f1a00f') @@ -20,5 +21,4 @@ package() { mkdir -p "$_npmdir" cd "$_npmdir" npm install -g --prefix "${pkgdir}/usr" "${_npmname}@${pkgver}" - rmdir "${pkgdir}/usr/etc" } |