diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 19 insertions, 15 deletions
@@ -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 @@ -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 |