diff options
author | Luke Arms | 2022-07-11 13:14:30 +1000 |
---|---|---|
committer | Luke Arms | 2022-07-11 13:14:30 +1000 |
commit | 5021f187c947ebc16db47872d4bdcf8a844daa86 (patch) | |
tree | 7b3ec9c7ba0a351a540815aa5f654e5c1181013d | |
parent | 5e24d66415b260ad74067965c366e4661b66612c (diff) | |
download | aur-asciicast2gif.tar.gz |
Download from npm registry, install LICENSE, fix permissions
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 16 |
3 files changed, 22 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = asciicast2gif pkgdesc = Generate GIF animations from asciicasts (asciinema recordings) pkgver = 0.2.1 - pkgrel = 1 + pkgrel = 2 url = https://github.com/asciinema/asciicast2gif arch = any license = MIT @@ -9,6 +9,8 @@ pkgbase = asciicast2gif depends = nodejs depends = imagemagick depends = gifsicle + noextract = asciicast2gif-0.2.1.tgz + source = https://registry.npmjs.org/asciicast2gif/-/asciicast2gif-0.2.1.tgz + sha256sums = 32142c7bbc43540960fe19c99e05b8bc50ddc99970a34a2264d0d437cd3c6a15 pkgname = asciicast2gif - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..091d90939cd4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO +!*.patch @@ -2,14 +2,24 @@ pkgname=asciicast2gif pkgver=0.2.1 -pkgrel=1 +pkgrel=2 pkgdesc="Generate GIF animations from asciicasts (asciinema recordings)" arch=('any') -license=('MIT') url="https://github.com/asciinema/asciicast2gif" +license=('MIT') depends=('nodejs' 'imagemagick' 'gifsicle') makedepends=('npm') +source=("https://registry.npmjs.org/${pkgname}/-/${pkgname}-${pkgver}.tgz") +noextract=("${pkgname}-${pkgver}.tgz") +sha256sums=('32142c7bbc43540960fe19c99e05b8bc50ddc99970a34a2264d0d437cd3c6a15') package() { - npm install -g --prefix "$pkgdir/usr" "$pkgname@$pkgver" + npm install -g --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tgz" + install -d "${pkgdir}/usr/share/licenses/${pkgname}" + ln -sr "${pkgdir}/usr/lib/node_modules/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + # See https://github.com/npm/npm/issues/9359 and + # https://bugs.archlinux.org/task/63396 + chmod -R u=rwX,go=rX "${pkgdir}" + chown -R root:root "${pkgdir}" } |