[arch-commits] Commit in marked0.8/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Jul 22 06:32:23 UTC 2020


    Date: Wednesday, July 22, 2020 @ 06:32:22
  Author: felixonmars
Revision: 664800

archrelease: copy trunk to community-any

Added:
  marked0.8/repos/community-any/
  marked0.8/repos/community-any/PKGBUILD
    (from rev 664799, marked0.8/trunk/PKGBUILD)

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

Copied: marked0.8/repos/community-any/PKGBUILD (from rev 664799, marked0.8/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-07-22 06:32:22 UTC (rev 664800)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=marked0.8
+_pkgname=marked
+pkgver=0.8.2
+pkgrel=1
+pkgdesc="A markdown parser built for speed (Legacy 0.8 version)"
+arch=('any')
+url='https://github.com/chjj/marked'
+license=('MIT')
+provides=("marked=$pkgver")
+conflicts=('marked')
+depends=('nodejs')
+makedepends=('npm')
+source=(https://registry.npmjs.org/$_pkgname/-/$_pkgname-$pkgver.tgz)
+noextract=($_pkgname-$pkgver.tgz)
+sha512sums=('106c3311e09c2e78855f9d43853a664e89be75203f306fce0540e39d6b476c49e3007d7cd15cd4780c3ea04e3e66ff82a18056c9195839347437c48ef51d4f57')
+
+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/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list