diff options
author | Andrea Feletto | 2020-11-13 12:38:43 +0100 |
---|---|---|
committer | Andrea Feletto | 2020-11-13 12:38:43 +0100 |
commit | fda517b3352cbabcfb33bc79f37cce4cccceba85 (patch) | |
tree | f478e5af5b4a083579f0ace5df5bad1d2ee08759 | |
download | aur-fda517b3352cbabcfb33bc79f37cce4cccceba85.tar.gz |
version 1.1.4
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4b50634394ce --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = nodejs-color-name + pkgdesc = A JSON with CSS color names. + pkgver = 1.1.4 + pkgrel = 1 + url = https://github.com/colorjs/color-name + arch = any + license = MIT + makedepends = npm + depends = nodejs + noextract = color-name-1.1.4.tar.gz + source = color-name-1.1.4.tar.gz::https://github.com/colorjs/color-name/archive/v1.1.4.tar.gz + sha256sums = cddf05f67ddc8d112ae0e60f4b52fa7e049d288635324b5fa5e385b7ade94fc7 + +pkgname = nodejs-color-name + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f787d76f6550 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ + +# Maintainer: Andrea Feletto <andrea@andreafeletto.com> + +pkgname=nodejs-color-name +_pkgname=${pkgname#*-} +pkgver=1.1.4 +pkgrel=1 +pkgdesc='A JSON with CSS color names.' +arch=('any') +url='https://github.com/colorjs/color-name' +license=('MIT') +depends=('nodejs') +makedepends=('npm') +source=("$_pkgname-$pkgver.tar.gz::https://github.com/colorjs/$_pkgname/archive/v$pkgver.tar.gz") +noextract=("$_pkgname-$pkgver.tar.gz") +sha256sums=('cddf05f67ddc8d112ae0e60f4b52fa7e049d288635324b5fa5e385b7ade94fc7') + +package() { + cd "$srcdir" + + npm install --user root --global --prefix "$pkgdir/usr" \ + "$_pkgname-$pkgver.tar.gz" + + install -Dm644 \ + "$pkgdir/usr/lib/node_modules/$_pkgname/LICENSE" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + |