summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2020-05-06 13:05:34 +0300
committerCaleb Maclennan2020-05-06 13:05:34 +0300
commitbc2a788ba56c0dfc451a80c2b4a9bd77334c61c3 (patch)
treefde8c1643945469e88a9656d58f3049c81efa569
parentd4f3b13369f3fa1454b37ce206a138305af3baba (diff)
downloadaur-nodejs-grunt.tar.gz
upgpkg: nodejs-grunt 1.1.0-1
upstream release Adopt, update, overhaul
-rw-r--r--.AURINFO13
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD37
3 files changed, 25 insertions, 41 deletions
diff --git a/.AURINFO b/.AURINFO
deleted file mode 100644
index 0fc3a9819a69..000000000000
--- a/.AURINFO
+++ /dev/null
@@ -1,13 +0,0 @@
-pkgbase = nodejs-grunt
- pkgdesc = The JavaScript Task Runner
- pkgver = 0.4.5
- pkgrel = 1
- url = http://gruntjs.com/
- arch = any
- license = MIT
- depends = nodejs
- source = http://registry.npmjs.org/grunt/-/grunt-0.4.5.tgz
- noextract = grunt-0.4.5.tgz
-
-pkgname = nodejs-grunt
-
diff --git a/.SRCINFO b/.SRCINFO
index 649f1015b643..291d578f4fed 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,17 @@
-# Generated by mksrcinfo v8
-# Wed Mar 22 03:27:48 UTC 2017
pkgbase = nodejs-grunt
pkgdesc = The JavaScript Task Runner
- pkgver = 1.0.1
- pkgrel = 2
- url = http://gruntjs.com/
+ pkgver = 1.1.0
+ pkgrel = 1
+ url = http://gruntjs.com
arch = any
license = MIT
makedepends = npm
+ makedepends = jq
+ makedepends = moreutils
depends = nodejs
- noextract = grunt-1.0.1.tgz
- source = http://registry.npmjs.org/grunt/-/grunt-1.0.1.tgz
- sha1sums = e8778764e944b18f32bb0f10b9078475c9dfb56b
+ noextract = grunt-1.1.0.tgz
+ source = http://registry.npmjs.org/grunt/-/grunt-1.1.0.tgz
+ sha256sums = 899900960729f16e28919b5b6485a960037abcd6bb879b710321552be95d1893
pkgname = nodejs-grunt
diff --git a/PKGBUILD b/PKGBUILD
index b9926874bd01..8f97eff810e3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,29 @@
-# Author: "Cowboy" Ben Alman (http://benalman.com/)
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: "Cowboy" Ben Alman (http://benalman.com/)
# Contributor: Kyle Robinson Young (http://dontkry.com/)
# Contributor: Tyler Kellen (http://goingslowly.com)
# Contributor: Sindre Sorhus (http://sindresorhus.com)
-# Contributor: cowboy <cowboy@rj3.net>
# Contributor: tkellen <tyler@sleekcode.net>
# Contributor: cracoucass14
-_npmname=grunt
-pkgname=nodejs-grunt # All lowercase
-pkgver=1.0.1
-pkgrel=2
-pkgdesc="The JavaScript Task Runner"
+pkgname=nodejs-grunt
+_npmname=${pkgname#nodejs-}
+pkgver=1.1.0
+pkgrel=1
+pkgdesc='The JavaScript Task Runner'
arch=(any)
-url="http://gruntjs.com/"
-license=(MIT)
+url='http://gruntjs.com'
+license=('MIT')
depends=('nodejs')
-makedepends=('npm')
-optdepends=()
-source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
-noextract=($_npmname-$pkgver.tgz)
-sha1sums=('e8778764e944b18f32bb0f10b9078475c9dfb56b')
+makedepends=('npm' 'jq' 'moreutils')
+source=("http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
+sha256sums=('899900960729f16e28919b5b6485a960037abcd6bb879b710321552be95d1893')
+noextract=("${source[@]##*/}")
package() {
- cd $srcdir
- local _npmdir="$pkgdir/usr/lib/node_modules/"
- mkdir -p $_npmdir
- cd $_npmdir
- npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver
-# rmdir "$pkgdir/usr/etc"
+ npm install -g --user root --cache "$srcdir/npm-cache" --prefix "$pkgdir/usr" "${source[@]##*/}"
+ find "$pkgdir"/usr -type d -exec chmod 755 {} +
+ find "$pkgdir" -type f -name package.json \
+ -execdir sh -c "jq '. |= with_entries(select(.key | test(\"_.+\") | not))' {} | sponge {}" \;
+ chown -R root:root "$pkgdir"
}