[arch-commits] Commit in stylus/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Jan 3 13:50:53 UTC 2020


    Date: Friday, January 3, 2020 @ 13:50:53
  Author: felixonmars
Revision: 547175

archrelease: copy trunk to community-any

Added:
  stylus/repos/community-any/PKGBUILD
    (from rev 547168, stylus/trunk/PKGBUILD)
Deleted:
  stylus/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++--------------------
 1 file changed, 29 insertions(+), 20 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-03 13:50:52 UTC (rev 547174)
+++ PKGBUILD	2020-01-03 13:50:53 UTC (rev 547175)
@@ -1,20 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=stylus
-pkgdesc='Robust, expressive, and feature-rich CSS superset'
-pkgver=0.54.7
-pkgrel=1
-arch=('any')
-url='https://github.com/stylus/stylus'
-license=('MIT')
-depends=('nodejs')
-makedepends=('npm' 'git')
-source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
-noextract=($pkgname-$pkgver.tgz)
-sha256sums=('15de26b88cd5840e9d1469c0cb58379d94c18a1ee1ecd5eb17cad0cfeb790698')
-
-package() {
-  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
-  mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
-  ln -s "../../../lib/node_modules/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
-}

Copied: stylus/repos/community-any/PKGBUILD (from rev 547168, stylus/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-01-03 13:50:53 UTC (rev 547175)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=stylus
+pkgdesc='Robust, expressive, and feature-rich CSS superset'
+pkgver=0.54.7
+pkgrel=2
+arch=('any')
+url='https://github.com/stylus/stylus'
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm' 'git')
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+sha256sums=('15de26b88cd5840e9d1469c0cb58379d94c18a1ee1ecd5eb17cad0cfeb790698')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+
+  # Non-deterministic race in npm gives 777 permissions to random directories.
+  # See https://github.com/npm/npm/issues/9359 for details.
+  chmod -R u=rwX,go=rX "$pkgdir"
+
+  # npm installs package.json owned by build user
+  # https://bugs.archlinux.org/task/63396
+  chown -R root:root "$pkgdir"
+
+  mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+  ln -s "../../../lib/node_modules/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
+}



More information about the arch-commits mailing list