diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -5,7 +5,7 @@ pkgname=nodejs-commitlint _name=${pkgname#nodejs-} pkgver=18.4.4 -pkgrel=1 +pkgrel=2 pkgdesc="Lint commit messages" arch=(any) url="https://github.com/conventional-changelog/commitlint" @@ -13,15 +13,29 @@ license=(MIT) depends=(nodejs) makedepends=(npm) -source=("https://registry.npmjs.org/$_name/-/$_name-$pkgver.tgz") -noextract=("$_name-$pkgver.tgz") -sha256sums=('eef2f1bb00bb8e342c2bb37fb09e2d7251bd3a01e9e9d7cb33ad4d2e90f5d7ae') +source=( + "https://registry.npmjs.org/$_name/-/$_name-$pkgver.tgz" + "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-$pkgver.tgz" +) +noextract=( + "$_name-$pkgver.tgz" + "config-conventional-$pkgver.tgz" +) +sha256sums=( + 'eef2f1bb00bb8e342c2bb37fb09e2d7251bd3a01e9e9d7cb33ad4d2e90f5d7ae' + '7067d84963461d3c642120653e7edafd1f7c3071898b2b295d82a61a237a450f' +) package() { npm install -g \ --cache "$srcdir/npm-cache" \ --prefix "$pkgdir/usr" \ "$srcdir/$_name-$pkgver.tgz" + npm install -g \ + --cache "$srcdir/npm-cache" \ + --prefix "$pkgdir/usr" \ + "$srcdir/config-conventional-$pkgver.tgz" + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" \ "$pkgdir/usr/lib/node_modules/$_name/license.md" |