blob: eb9a6e0080aa0a322f14002b9b76d0175039b09a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Maintainer: Sam A. Horvath-Hunt <hello@samhh.com>
# See regarding pkgname and pkgver:
# https://github.com/mikew/prettier_d_slim/issues/5
pkgname=prettier_d_slim
pkgver=1.2.0
pkgrel=1
pkgdesc="Makes Prettier fast."
url="https://github.com/mikew/prettier_d_slim"
license=("MIT")
arch=("any")
depends=("nodejs")
makedepends=("npm")
source=("https://registry.npmjs.org/${pkgname}/-/${pkgname}-${pkgver}.tgz")
noextract=("${pkgname}-${pkgver}.tgz")
sha256sums=('ddde3262fdef75cc926743ea69c068eabd9808e47e1554f561a316821485c621')
prepare() {
tar xf "${pkgname}-${pkgver}.tgz" package/LICENSE
}
package() {
npm i -g --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "$srcdir/$pkgname-$pkgver.tgz"
install -Dm644 package/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|