1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 20:40:32 +01:00

Compare commits

..

11 Commits

Author SHA1 Message Date
553f482166 upgpkg: nodejs-node-pre-gyp 1.0.6-1
upstream release

upgpkg: nodejs-node-pre-gyp 1.0.6-1

Upstream changed package names on npm. This required some changes. For
more details, see [1].

[1]: https://github.com/mapbox/node-pre-gyp#special-note-on-previous-package
2021-10-24 15:24:43 +02:00
8c04d95ca1 Add 'nodejs-node-pre-gyp/' from commit 'd94eefc1a14868ede3d11e2a83541a235e2c8184'
git-subtree-dir: nodejs-node-pre-gyp
git-subtree-mainline: 7b6a940fd5
git-subtree-split: d94eefc1a1
2021-10-24 15:24:04 +02:00
d94eefc1a1 Don't install the "root" package anymore
Related to https://bugs.archlinux.org/task/70134
2021-04-17 14:59:04 +02:00
b46d40ac82 Update to v0.17.0. 2020-12-07 20:17:45 +01:00
8438ae6125 Update to 0.16.0. 2020-10-29 23:50:54 +01:00
2467fc74c2 Update to v0.15.0 2020-05-30 10:36:29 +02:00
6d80c0fab1 Fix a permission issue 2019-10-26 12:13:05 +02:00
68c461b153 Update to v0.14.0. 2019-10-26 12:10:59 +02:00
819f9771ff Update to v0.13.0.
This commit has not been published to Github, hence the original version
posted earlier today and hence the switch to using npm's archive.
2019-04-30 11:34:19 +02:00
a5c657d13b Correct license path and type. 2019-04-30 11:13:43 +02:00
cee6c1bd73 Initial packaging. 2019-04-30 11:06:47 +02:00
3 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
pkgbase = nodejs-node-pre-gyp
pkgdesc = Node.js tool for easy binary deployment of C++ addons
pkgver = 1.0.6
pkgrel = 1
url = https://github.com/mapbox/node-pre-gyp
arch = any
license = BSD
makedepends = npm
makedepends = jq
depends = nodejs
noextract = node-pre-gyp-1.0.6.tgz
source = https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.6.tgz
sha1sums = f859d601a210537e27530f363028cde56e0cf962
pkgname = nodejs-node-pre-gyp

4
nodejs-node-pre-gyp/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
*
!.gitignore
!PKGBUILD
!.SRCINFO

View File

@@ -0,0 +1,35 @@
# Maintainer: Bert Peters <bert@bertptrs.nl>
_npmname=node-pre-gyp
pkgname=nodejs-node-pre-gyp
pkgver=1.0.6
pkgrel=1
pkgdesc="Node.js tool for easy binary deployment of C++ addons "
arch=('any')
url="https://github.com/mapbox/node-pre-gyp"
license=('BSD')
depends=('nodejs')
makedepends=('npm' 'jq')
source=("https://registry.npmjs.org/@mapbox/$_npmname/-/$_npmname-$pkgver.tgz")
noextract=("$_npmname-$pkgver.tgz")
sha1sums=('f859d601a210537e27530f363028cde56e0cf962')
package() {
npm install -g --prefix "$pkgdir/usr" "$_npmname-$pkgver.tgz"
# Remove references to $pkgdir
find "$pkgdir" -type f -name package.json -print0 | xargs -0 sed -i "/_where/d"
# Remove references to $srcdir
local tmppackage="$(mktemp)"
local pkgjson="$pkgdir/usr/lib/node_modules/@mapbox/$_npmname/package.json"
jq '.|=with_entries(select(.key|test("_.+")|not))' "$pkgjson" > "$tmppackage"
mv "$tmppackage" "$pkgjson"
chmod 644 "$pkgjson"
# Fix a weird permission thing
chmod 755 "$pkgdir/usr/lib/node_modules"
# Install LICENSE in a more findable spot.
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" \
"$pkgdir/usr/lib/node_modules/@mapbox/$_npmname/LICENSE"
}