# Maintainer: Christian Schendel # Contributor: Debucquoy Anthony (tonitch) 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: