diff options
author | GitHub Action | 2021-06-20 02:04:48 +0000 |
---|---|---|
committer | GitHub Action | 2021-06-20 02:04:48 +0000 |
commit | a09eaaf923f26e5b397286d2ed13a6c73e038c4e (patch) | |
tree | 870c8ae1fcc750105a39b9958b7dc358cdc4ed46 /PKGBUILD | |
parent | ecdb2bbefab44eb1aec06b660ceb39aef9e5ee26 (diff) | |
download | aur-a09eaaf923f26e5b397286d2ed13a6c73e038c4e.tar.gz |
Update from GitHub Actions: nodejs-express: update to 4.17.1-1
https://github.com/ouuan/AUR-packages/actions/runs/953566235
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 14 insertions, 15 deletions
@@ -1,28 +1,27 @@ -# Maintainer: Mario Finelli <mario at finel dot li> +# Maintainer: Yufan You <ouuansteve at gmail> +# Contributor: Mario Finelli <mario at finel dot li> # Contributor: Mark Pustjens <pustjens at dds dot nl> _npmname=express -pkgname=nodejs-$_npmname -pkgver=4.16.3 +pkgname=nodejs-express +pkgver=4.17.1 pkgrel=1 -pkgdesc="Fast, unopinionated, minimalist web framework." +pkgdesc="Fast, unopinionated, minimalist web framework for node." arch=('any') -url="https://expressjs.com" +url="https://github.com/expressjs/express" license=('MIT') depends=('nodejs') makedepends=('npm') source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz) noextract=($_npmname-$pkgver.tgz) -sha256sums=('7e6e24c704d81f81b24f19e6faf1613b3eca752363b755e61debe02ef77a0ca8') +sha256sums=('2600b551c4e3f56d1bd5e28505d4ecfe3e73e58cc3a0ad5be08c0bf395aa02a9') package() { - npm install \ - --user root --global \ - --prefix "$pkgdir/usr" \ - "$srcdir"/$_npmname-$pkgver.tgz - - find "$pkgdir/usr" -type d -exec chmod 755 '{}' + - - install -Dm0644 "$pkgdir/usr/lib/node_modules/$_npmname/LICENSE" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "$srcdir" + local _npmdir="$pkgdir/usr/lib/node_modules/" + mkdir -p "$_npmdir" + cd "$_npmdir" + npm install -g --prefix "$pkgdir/usr" "$_npmname@$pkgver" + install -Dm644 "$_npmdir/$_npmname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + chown -R root:root "${pkgdir}" } |