[arch-commits] Commit in marked/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed Apr 22 01:11:26 UTC 2020


    Date: Wednesday, April 22, 2020 @ 01:11:19
  Author: felixonmars
Revision: 617416

archrelease: copy trunk to community-testing-any

Added:
  marked/repos/community-testing-any/
  marked/repos/community-testing-any/PKGBUILD
    (from rev 617415, marked/trunk/PKGBUILD)

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

Copied: marked/repos/community-testing-any/PKGBUILD (from rev 617415, marked/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-04-22 01:11:19 UTC (rev 617416)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=marked
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="A markdown parser built for speed"
+arch=('any')
+url='https://github.com/chjj/marked'
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('5a8f8bd695935626dfad2afe4d3b4cba231f3739995a238f78eeeb66c4146396e0b31a477ac0447085899685954c59eb3179dffd32f7d1e4c548625d7664009e')
+
+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"
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname
+  ln -s ../../../lib/node_modules/marked/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list