dotfiles/code/PKGBUILDs/eask/PKGBUILD
Lucien Cartier-Tilet 4088f199d5
All checks were successful
continuous-integration/drone/push Build is passing
[PKGBUILD] update Eask
2023-11-05 22:49:24 +01:00

28 lines
933 B
Bash

# Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com>
_pkgname=eask
_orgname=emacs-eask
_nodepkgname=cli
pkgname="nodejs-${_pkgname}"
pkgver=0.8.3
pkgrel=1
pkgdesc="Command-line tool for building and testing Emacs Lisp packages"
url="https://github.com/${_orgname}/${_pkgname}"
license=("GPL3")
arch=("any")
depends=("nodejs")
makedepends=("npm")
source=("https://registry.npmjs.org/@${_orgname}/${_nodepkgname}/-/${_nodepkgname}-${pkgver}.tgz")
sha256sums=('d63d7ab8b8f2c640d20c4cdba986a7b7595ca9972753659bfd6a511387f1b122')
noextract=("$_pkgname-$pkgver.tgz")
prepare() {
tar xf "$_nodepkgname-$pkgver.tgz" package/COPYING
}
package() {
npm i --location=global --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "$srcdir/$_nodepkgname-$pkgver.tgz"
install -Dm644 package/COPYING "$pkgdir/usr/share/licenses/$_pkgname/COPYING"
# install -Dm644 <(nps eask) "$pkgdir/usr/share/bash-completion/completions/$_pkgname"
}