Date: Friday, January 3, 2020 @ 14:01:06 Author: felixonmars Revision: 547594
archrelease: copy trunk to community-any Added: marked/repos/community-any/PKGBUILD (from rev 547593, marked/trunk/PKGBUILD) Deleted: marked/repos/community-any/PKGBUILD ----------+ PKGBUILD | 49 +++++++++++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 20 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-01-03 14:00:47 UTC (rev 547593) +++ PKGBUILD 2020-01-03 14:01:06 UTC (rev 547594) @@ -1,20 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@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 -} Copied: marked/repos/community-any/PKGBUILD (from rev 547593, marked/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-01-03 14:01:06 UTC (rev 547594) @@ -0,0 +1,29 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=marked +pkgver=0.8.0 +pkgrel=2 +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 + + # 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 +}