summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDušan Simić2021-07-05 00:06:22 +0200
committerDušan Simić2021-07-05 00:06:22 +0200
commit7dfd653172ee0eced67a1c0188442267ed68e753 (patch)
treee61e3f367874dffbacc564d4f3b45e760e8f4a93
parent81af62dcbe8400a868364bfb75f86a958887cee4 (diff)
downloadaur-7dfd653172ee0eced67a1c0188442267ed68e753.tar.gz
Bump version to 1.15.2
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD28
2 files changed, 19 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ab36aa542c4..3d0bdd967f9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = zx
pkgdesc = A tool for writing better scripts
- pkgver = 1.14.2
+ pkgver = 1.15.2
pkgrel = 1
url = https://github.com/google/zx
arch = any
@@ -8,7 +8,7 @@ pkgbase = zx
makedepends = npm
makedepends = git
depends = nodejs
- source = zx-1.14.2.tar.gz::https://github.com/google/zx/archive/1.14.2.tar.gz
- sha512sums = 4ec4c3e01bf9d20cd1c46e2a666244c1b76859b28134ddba0b693c58b8a2eb05c2330e6c8ab345bfd00826b07f5a3eaa33d7c7b54a874f5a73659f4bb5bab8bf
+ source = git+https://github.com/google/zx#commit=9f0d0bce9936bda1b543871dd53bed197d87b871
+ sha512sums = SKIP
pkgname = zx
diff --git a/PKGBUILD b/PKGBUILD
index ebccdb705c4..d975efaed6e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Dušan Simić <dusan.simic1810@gmail.com>
pkgname=zx
-pkgver=1.14.2
+pkgver=1.15.2
+_commit=9f0d0bce9936bda1b543871dd53bed197d87b871
pkgrel=1
pkgdesc="A tool for writing better scripts"
arch=("any")
@@ -9,23 +10,26 @@ url="https://github.com/google/zx"
license=("Apache")
depends=("nodejs")
makedepends=("npm" "git")
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=("4ec4c3e01bf9d20cd1c46e2a666244c1b76859b28134ddba0b693c58b8a2eb05c2330e6c8ab345bfd00826b07f5a3eaa33d7c7b54a874f5a73659f4bb5bab8bf")
+source=("git+${url}#commit=${_commit}")
+sha512sums=("SKIP")
build() {
- cd "$pkgname-$pkgver"
+ cd ${pkgname}
npm install --production
}
package() {
- local _npmdir="$pkgdir/usr/lib/node_modules"
- mkdir -p "$_npmdir/$pkgname"
- cp -r "$srcdir/$pkgname-$pkgver"/* "$_npmdir/$pkgname"
- local _bindir="$pkgdir/usr/bin"
- mkdir -p "$_bindir"
- ln -s "/usr/lib/node_modules/$pkgname/zx.mjs" "$_bindir/zx"
-
- install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/license/$pkgname/LICENSE"
+ cd ${pkgname}
+
+ local _npmdir="${pkgdir}/usr/lib/node_modules"
+ install -d "${_npmdir}/${pkgname}"
+ cp -r * "${_npmdir}/${pkgname}"
+
+ local _bindir="${pkgdir}/usr/bin"
+ mkdir -p "${_bindir}"
+ ln -s "/usr/lib/node_modules/${pkgname}/zx.mjs" "${_bindir}/zx"
+
+ install -Dm644 LICENSE "${pkgdir}/usr/share/license/${pkgname}/LICENSE"
}
# vim: syntax=sh