summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Legner2018-05-04 20:31:25 +0200
committerSimon Legner2018-05-04 20:36:00 +0200
commit89c5ad06fb7bcdd89b41e5691c26bbcca02b8a89 (patch)
treeb408a9ac4c01ea29a5aca3d19c5ee49f55a3ea06
parent03f3190f7957e87575267ec002480ddf47bbad54 (diff)
downloadaur-89c5ad06fb7bcdd89b41e5691c26bbcca02b8a89.tar.gz
2.7.7-2: repackage for npm 6
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD17
2 files changed, 12 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b9d9ffaa42c..76a87c44e5a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
# Generated by mksrcinfo v8
-# Tue Sep 19 10:45:45 UTC 2017
+# Fri May 4 18:31:19 UTC 2018
pkgbase = lebab
pkgdesc = Turn your JavaScript ES5 code into readable ES6/ES7
pkgver = 2.7.7
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/mohebifar/lebab
arch = any
license = MIT
+ makedepends = npm
depends = nodejs
- depends = npm
noextract = lebab-2.7.7.tgz
source = http://registry.npmjs.org/lebab/-/lebab-2.7.7.tgz
sha1sums = 979b243789ed12c085251382e4ecb62f56357252
diff --git a/PKGBUILD b/PKGBUILD
index a147eb49e17..68ebb33d02b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,25 @@
# Maintainer: Simon Legner <Simon.Legner@gmail.com>
-_npmname=lebab
-_npmver=2.7.7
pkgname=lebab # All lowercase
pkgver=2.7.7
-pkgrel=1
+pkgrel=2
pkgdesc="Turn your JavaScript ES5 code into readable ES6/ES7"
arch=(any)
url="https://github.com/mohebifar/lebab"
license=('MIT')
-depends=('nodejs' 'npm' )
-optdepends=()
-source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
-noextract=($_npmname-$_npmver.tgz)
+depends=('nodejs')
+makedepends=('npm')
+source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
package() {
cd $srcdir
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p $_npmdir
cd $_npmdir
- npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+ npm install -g --prefix "$pkgdir/usr" $pkgname@$pkgver
+ install -Dm755 "$_npmdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ find "${pkgdir}"/usr -name package.json -exec sed -i '/"_where"/d' '{}' '+'
+ find "${pkgdir}"/usr -type d -exec chmod 755 {} +
}
# vim:set ts=2 sw=2 et: