summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD15
1 files changed, 10 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5bffcf3713f..aee9b58a17e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,20 +2,25 @@
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=legit
-pkgver=3.0.1
-pkgrel=2
-pkgdesc="Add licenses to projects at the command line"
+pkgver=3.1.0
+pkgrel=1
+pkgdesc="CLI tool to add licenses to projects"
arch=('any')
url='https://github.com/captainsafia/legit'
license=('MIT')
depends=('nodejs')
makedepends=('npm')
+options=('!emptydirs')
source=("$pkgname-$pkgver.tgz::https://registry.npmjs.org/@captainsafia/legit/-/legit-$pkgver.tgz")
noextract=("${pkgname}-${pkgver}.tar.gz")
-sha256sums=('44b38be1f7f511596367c9e1eed13e5f42970bcf5289691bda60d0a2bcfd3b97')
+sha256sums=('b99d3f778c00d4bd819c73ae961e15cbf3138405c5f99176dc7643326df1488f')
+
+PURGE_TARGETS+=(usr/lib/modules/@captainsafia/legit *.md *.xml *.yml)
package() {
+ export NODE_ENV=production
npm install -g --cache "$srcdir/npm-cache" --prefix "$pkgdir/usr" "$pkgname-$pkgver.tgz"
- install -Dm 644 "$pkgdir/usr/lib/node_modules/@captainsafia/legit/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
+ install -d "$pkgdir/usr/share/licenses/$pkgname/"
+ ln -s "/usr/lib/node_modules/@captainsafia/legit/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
chown -R root:root "$pkgdir/"
}