diff options
author | zoorat | 2021-09-08 15:29:55 +0600 |
---|---|---|
committer | zoorat | 2021-09-08 15:29:55 +0600 |
commit | a6f49b22dca47f67f2457191bf00c6bfda62dbd3 (patch) | |
tree | 2dda9237b5ce88894868b35df37f304b80c7d1e7 | |
parent | d345df855573ae470e9fe5589591a15dbe658f8a (diff) | |
download | aur-a6f49b22dca47f67f2457191bf00c6bfda62dbd3.tar.gz |
updating to v4.1.1
Signed-off-by: zoorat <78788887+z00rat@users.noreply.github.com>
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 20 insertions, 13 deletions
@@ -1,6 +1,6 @@ pkgbase = alacritty-themes - pkgdesc = A utility for choosing and applying Alacritty terminal themes. - pkgver = 3.1.0 + pkgdesc = A cross-platform GPU-accelerated Terminal emulator. + pkgver = 4.1.1 pkgrel = 1 url = https://github.com/rajasegar/alacritty-themes arch = any @@ -8,9 +8,8 @@ pkgbase = alacritty-themes makedepends = npm makedepends = jq depends = nodejs - noextract = alacritty-themes-3.1.0.tgz - source = https://registry.npmjs.org/alacritty-themes/-/alacritty-themes-3.1.0.tgz - md5sums = ddf0def67624656e4f0b6d964ee5282f + noextract = alacritty-themes-4.1.1.tgz + source = https://registry.npmjs.org/alacritty-themes/-/alacritty-themes-4.1.1.tgz + b2sums = 2dd1247ab59f5af74436b8643dedf5b679b063a869d6c70e1925f76aa856c907d77452f179ff5c810e6c8b46bc911da0833a8e63c8849d98a25681cc1f64bcc7 pkgname = alacritty-themes - @@ -1,9 +1,11 @@ -# Maintainer: Ben Silverman <bensilverman10 at gmail dot com> +# Maintainer: zoorat <zoorat [at] protonmail [dot] com> +# Contributor: Ben Silverman <bensilverman10 at gmail dot com> + _npmname=alacritty-themes pkgname=${_npmname} -pkgver=3.1.0 +pkgver=4.1.1 pkgrel=1 -pkgdesc="A utility for choosing and applying Alacritty terminal themes." +pkgdesc="A cross-platform GPU-accelerated Terminal emulator." arch=(any) url="https://github.com/rajasegar/alacritty-themes" license=("MIT") @@ -11,7 +13,7 @@ depends=("nodejs") makedepends=("npm" "jq") source=("https://registry.npmjs.org/${_npmname}/-/${_npmname}-${pkgver}.tgz") noextract=("${pkgname}-${pkgver}.tgz") -md5sums=('ddf0def67624656e4f0b6d964ee5282f') +b2sums=('2dd1247ab59f5af74436b8643dedf5b679b063a869d6c70e1925f76aa856c907d77452f179ff5c810e6c8b46bc911da0833a8e63c8849d98a25681cc1f64bcc7') package() { npm install -g --cache "${srcdir}/npm-cache" --user root --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tgz" @@ -23,15 +25,21 @@ package() { # npm gives ownership of ALL FILES to build user # https://bugs.archlinux.org/task/63396 chown -R root:root "${pkgdir}" - + # Remove references to $pkgdir find "$pkgdir" -name package.json -print0 | xargs -r -0 sed -i '/_where/d' # Remove references to $srcdir local tmppackage="$(mktemp)" local pkgjson="$pkgdir/usr/lib/node_modules/$pkgname/package.json" - jq '.|=with_entries(select(.key|test("_.+")|not))' "$pkgjson" > "$tmppackage" + jq '.|=with_entries(select(.key|test("_.+")|not))' "$pkgjson" >"$tmppackage" mv "$tmppackage" "$pkgjson" chmod 644 "$pkgjson" -} + find "$pkgdir" -type f -name package.json | while read pkgjson; do + local tmppackage="$(mktemp)" + jq 'del(.man)' "$pkgjson" >"$tmppackage" + mv "$tmppackage" "$pkgjson" + chmod 644 "$pkgjson" + done +} |