Date: Saturday, November 9, 2019 @ 15:17:09
  Author: maximbaz
Revision: 524835

archrelease: copy trunk to community-any

Added:
  prettier/repos/community-any/PKGBUILD
    (from rev 524834, prettier/trunk/PKGBUILD)
Deleted:
  prettier/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   66 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 35 insertions(+), 31 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2019-11-09 15:17:04 UTC (rev 524834)
+++ PKGBUILD    2019-11-09 15:17:09 UTC (rev 524835)
@@ -1,31 +0,0 @@
-# Maintainer: Jerome Leclanche <jer...@leclan.ch>
-# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
-
-pkgname=prettier
-pkgver=1.18.2
-pkgrel=1
-pkgdesc="An opinionated code formatter for JS, JSON, CSS, YAML and much more"
-arch=("any")
-url="https://prettier.io/";
-license=("MIT")
-depends=("nodejs")
-makedepends=("yarn")
-source=("$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz";)
-sha256sums=("daae2e5eb6ce9e63853edd91545070010fc38ea9e3b7a4ed1e5614106da718e1")
-
-
-build() {
-       cd "$pkgname-$pkgver"
-       yarn
-       yarn build
-}
-
-
-package() {
-       install -d "$pkgdir/usr/lib/$pkgname"
-       cd "$pkgdir/usr/lib/$pkgname"
-       cp -a "$srcdir/$pkgname-$pkgver/dist/"* .
-       install -d "$pkgdir/usr/bin"
-       ln -s "/usr/lib/$pkgname/bin-$pkgname.js" "$pkgdir/usr/bin/$pkgname"
-       install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" 
"$srcdir/$pkgname-$pkgver/LICENSE"
-}

Copied: prettier/repos/community-any/PKGBUILD (from rev 524834, 
prettier/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2019-11-09 15:17:09 UTC (rev 524835)
@@ -0,0 +1,35 @@
+# Maintainer: Jerome Leclanche <jer...@leclan.ch>
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+
+pkgname=prettier
+pkgver=1.19.1
+pkgrel=1
+pkgdesc="An opinionated code formatter for JS, JSON, CSS, YAML and much more"
+arch=("any")
+url="https://prettier.io/";
+license=("MIT")
+depends=("nodejs")
+makedepends=("yarn")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz";)
+sha256sums=('5fe18a6f7933479531e937858f83a4edd08e7478c3edf711c8438987ebec5c7e')
+
+
+build() {
+       cd "$pkgname-$pkgver"
+       yarn
+       yarn build
+}
+
+
+package() {
+       install -d "$pkgdir/usr/lib/$pkgname"
+       cd "$pkgdir/usr/lib/$pkgname"
+       cp -a "$srcdir/$pkgname-$pkgver/dist/"* .
+
+       # https://github.com/prettier/prettier/issues/6900
+       chmod +x "bin-$pkgname.js"
+
+       install -d "$pkgdir/usr/bin"
+       ln -s "/usr/lib/$pkgname/bin-$pkgname.js" "$pkgdir/usr/bin/$pkgname"
+       install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" 
"$srcdir/$pkgname-$pkgver/LICENSE"
+}

Reply via email to