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

Felix Yan felixonmars at archlinux.org
Sun Dec 22 18:20:43 UTC 2019


    Date: Sunday, December 22, 2019 @ 18:20:42
  Author: felixonmars
Revision: 538873

archrelease: copy trunk to community-testing-any

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

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

Copied: marked/repos/community-testing-any/PKGBUILD (from rev 538872, marked/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-12-22 18:20:42 UTC (rev 538873)
@@ -0,0 +1,20 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=marked
+pkgver=0.8.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=('33251ef93fcfc384d9b9f1e4cc07c38fa1daac205689adb2dbbfdb86e6244da8949df0d816708fdca50dfbda0ced68ba240dabca6b5561b42edeca44d060a6c5')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+  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