summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDušan Simić2021-05-19 12:27:43 +0200
committerDušan Simić2021-05-19 12:27:43 +0200
commit3f5b4334fd55e35088b1cf2a40853afa34bf3027 (patch)
tree775f8288238d69fb8074341b013e187bbe1c5c1d
parent39c0dd08880e1e79e8eccb78adeab61474e6f93c (diff)
downloadaur-3f5b4334fd55e35088b1cf2a40853afa34bf3027.tar.gz
Bump version 1.7.6
Released are being published now so I've switched from git source to tar.gz source.
-rw-r--r--.SRCINFO6
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD13
3 files changed, 10 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 614712c8cd2..74e442929b6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = zx
pkgdesc = A tool for writing better scripts
- pkgver = 1.7.0
+ pkgver = 1.7.6
pkgrel = 1
url = https://github.com/google/zx
arch = any
@@ -8,8 +8,8 @@ pkgbase = zx
makedepends = npm
makedepends = git
depends = nodejs
- source = git+https://github.com/google/zx.git#commit=5429b40b7be5049ca01340f5c1936f89961a8045
- sha256sums = SKIP
+ source = zx-1.7.6.tar.gz::https://github.com/google/zx/archive/1.7.6.tar.gz
+ sha512sums = de0a89fe4e624a9dbd3d9e04e6237acef5adbdea82ce8030a9bf0c518e96f7727b8dca580fb6b3eb4b0fcd7d9b6b97fe6b12b68b677dd34f3160737a947ba91b
pkgname = zx
diff --git a/.gitignore b/.gitignore
index 74f3f5b8cef..826a965992b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ pkg
src
zx
*.tar.zst
+*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index 0714937b7fa..1c8d7faf0d3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,7 @@
# Maintainer: Dušan Simić <dusan.simic1810@gmail.com>
pkgname=zx
-pkgver=1.7.0
-_commit=5429b40b7be5049ca01340f5c1936f89961a8045
+pkgver=1.7.6
pkgrel=1
pkgdesc="A tool for writing better scripts"
arch=("any")
@@ -10,23 +9,23 @@ url="https://github.com/google/zx"
license=("Apache")
depends=("nodejs")
makedepends=("npm" "git")
-source=("git+$url.git#commit=$_commit")
-sha256sums=("SKIP")
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=("de0a89fe4e624a9dbd3d9e04e6237acef5adbdea82ce8030a9bf0c518e96f7727b8dca580fb6b3eb4b0fcd7d9b6b97fe6b12b68b677dd34f3160737a947ba91b")
build() {
- cd "$pkgname"
+ cd "$pkgname-$pkgver"
npm install --production
}
package() {
local _npmdir="$pkgdir/usr/lib/node_modules"
mkdir -p "$_npmdir/$pkgname"
- cp -r "$srcdir/$pkgname"/* "$_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/LICENSE" "$pkgdir/usr/share/license/$pkgname/LICENSE"
+ install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/license/$pkgname/LICENSE"
}
# vim: syntax=sh