Date: Tuesday, February 4, 2020 @ 08:05:34 Author: felixonmars Revision: 562008
archrelease: copy trunk to community-any Added: uglify-js/repos/community-any/PKGBUILD (from rev 562007, uglify-js/trunk/PKGBUILD) uglify-js/repos/community-any/uglify-js.install (from rev 562007, uglify-js/trunk/uglify-js.install) Deleted: uglify-js/repos/community-any/PKGBUILD uglify-js/repos/community-any/uglify-js.install -------------------+ PKGBUILD | 64 ++++++++++++++++++++++++++-------------------------- uglify-js.install | 16 ++++++------- 2 files changed, 40 insertions(+), 40 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-02-04 08:05:15 UTC (rev 562007) +++ PKGBUILD 2020-02-04 08:05:34 UTC (rev 562008) @@ -1,32 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Daniel Nagy <danielnagy at gmx de> - -pkgname=uglify-js -pkgver=3.7.6 -pkgrel=1 -pkgdesc="JavaScript parser, mangler/compressor and beautifier toolkit" -arch=('any') -url='http://lisperator.net/uglifyjs' -license=('BSD') -depends=('nodejs') -makedepends=('npm') -install=${pkgname}.install -source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz) -noextract=($pkgname-$pkgver.tgz) -sha512sums=('c98aa302b3984b1bea79e8981f65468d93aaaba4959a1c7368f8c90b55b617d7be6eabc52fd417436a2c42e2941633368468ca1b661c9509d1296412b7f9ce4d') - -package() { - npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz - mkdir -p "$pkgdir/usr/share/licenses/$pkgname" - ln -s "../../../lib/node_modules/uglify-js/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/" - - # 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" -} - -# vim:set ts=2 sw=2 et: Copied: uglify-js/repos/community-any/PKGBUILD (from rev 562007, uglify-js/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-02-04 08:05:34 UTC (rev 562008) @@ -0,0 +1,32 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Daniel Nagy <danielnagy at gmx de> + +pkgname=uglify-js +pkgver=3.7.7 +pkgrel=1 +pkgdesc="JavaScript parser, mangler/compressor and beautifier toolkit" +arch=('any') +url='http://lisperator.net/uglifyjs' +license=('BSD') +depends=('nodejs') +makedepends=('npm') +install=${pkgname}.install +source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz) +noextract=($pkgname-$pkgver.tgz) +sha512sums=('15e494fa18bb50b632ea69fc3ca8a8fed5ec7525cddf9966e0a815d9ab31d34933acb53d3e2de802c95c253ef425d8fb3c75f6f601943ce4fafa55c605b7a684') + +package() { + npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz + mkdir -p "$pkgdir/usr/share/licenses/$pkgname" + ln -s "../../../lib/node_modules/uglify-js/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/" + + # 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" +} + +# vim:set ts=2 sw=2 et: Deleted: uglify-js.install =================================================================== --- uglify-js.install 2020-02-04 08:05:15 UTC (rev 562007) +++ uglify-js.install 2020-02-04 08:05:34 UTC (rev 562008) @@ -1,8 +0,0 @@ -post_install() { - # fixup permissions - chmod 755 /usr/lib/node_modules -} - -post_upgrade() { - post_install -} Copied: uglify-js/repos/community-any/uglify-js.install (from rev 562007, uglify-js/trunk/uglify-js.install) =================================================================== --- uglify-js.install (rev 0) +++ uglify-js.install 2020-02-04 08:05:34 UTC (rev 562008) @@ -0,0 +1,8 @@ +post_install() { + # fixup permissions + chmod 755 /usr/lib/node_modules +} + +post_upgrade() { + post_install +}