better-commits/PKGBUILD

30 lines
1 KiB
Text
Raw Normal View History

2025-09-01 05:01:53 +02:00
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
# Contributor: Debucquoy Anthony (tonitch) <d.tonitch@gmail.com>
pkgname=better-commits
pkgver=1.17.1
pkgrel=1
pkgdesc="A CLI for creating better commits following the conventional commit guidelines."
arch=(any)
url="https://github.com/Everduin94/better-commits"
license=(
MIT
)
depends=(
nodejs
)
makedepends=(
npm
)
source=("https://registry.npmjs.org/${pkgname}/-/${pkgname}-${pkgver}.tgz")
b2sums=('73aa7c4cd354fda717423be143c6bd2210a51df383d2c04fc6866a07496e5291a5a848c6f84e07b93e94bee0c5b2a7f1be352ff6faba9fa883550649e881013c')
noextract=("${pkgname}-${pkgver}.tgz")
package() {
npm install -g --cache "${srcdir}/npm-cache" --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tgz"
install -Dm644 "${pkgdir}/usr/lib/node_modules/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
install -Dm644 "${pkgdir}/usr/lib/node_modules/${pkgname}/readme.md" "${pkgdir}/usr/share/doc/${pkgname}/readme.md"
}
# vim: set ft=sh ts=4 sw=4 et: