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

Felix Yan felixonmars at archlinux.org
Mon Feb 8 08:12:12 UTC 2021


    Date: Monday, February 8, 2021 @ 08:12:11
  Author: felixonmars
Revision: 848818

archrelease: copy trunk to community-testing-any

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

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

Copied: marked/repos/community-testing-any/PKGBUILD (from rev 848817, marked/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-02-08 08:12:11 UTC (rev 848818)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=marked
+pkgver=2.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=('36a452876f8b94dd8d227a6a4d09d2eb5e18ff736454c14553ab09951144a7127f2c7b8afea244087eff7d7663938559b2d3d6fcf7af8e297f56d48e36c2dced')
+
+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