dotfiles/code/PKGBUILDs/eask/PKGBUILD

28 lines
927 B
Bash
Raw Normal View History

2022-12-28 17:13:22 +00:00
# Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com>
_pkgname=eask
_orgname=emacs-eask
_nodepkgname=cli
pkgname="nodejs-${_pkgname}"
2024-01-27 17:33:09 +00:00
pkgver=0.9.3
2022-12-28 17:13:22 +00:00
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")
2023-01-05 13:13:40 +00:00
source=("https://registry.npmjs.org/@${_orgname}/${_nodepkgname}/-/${_nodepkgname}-${pkgver}.tgz")
2024-01-27 17:33:09 +00:00
sha256sums=('1f3d948d89544c7680f882c9dee72f121a500947a42aa14b785ac949f729a3d0')
2022-12-28 17:13:22 +00:00
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"
2024-01-01 21:44:06 +00:00
install -Dm644 package/COPYING "$pkgdir/usr/share/licenses/${_pkgname}/COPYING"
install -Dm644 package/README.md "$pkgdir/usr/share/doc/${_pkgname}/README.md"
2022-12-28 17:13:22 +00:00
}