# Maintainer: Christian Schendel # Contributor: Debucquoy Anthony (tonitch) pkgname=better-commits pkgver=1.18.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=('ae06da886a20a06e6c4c9c5a61c723ac76cc8c4b139856119923e2c5117cf9ca9bd77381b6776a4680ce9cbe1d9e0d2a6315335d57aea122ebfb96f286c20a92') 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: