blob: e25915609449a2d679192f18ad0a90af519f1e20 (
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
|
# Maintainer: Georg Nagel <g.schlmm at gmail dot com>
pkgname=astrojs-ts-plugin
_pkgname=${pkgname#astrojs-}
pkgver=1.10.4
pkgrel=1
pkgdesc="TypeScript plugin adding support for .astro imports in .ts files"
url="https://github.com/withastro/language-tools/tree/main/packages/ts-plugin#readme"
license=("MIT")
arch=("any")
depends=("nodejs")
makedepends=("npm")
source=("https://registry.npmjs.org/@astrojs/${_pkgname}/-/${_pkgname}-${pkgver}.tgz")
noextract=("${_pkgname}-${pkgver}.tgz")
sha256sums=('0fe475cdda6699d3c80af106d514a60125e0b27438514532707e02caea653303')
prepare() {
tar xf "${_pkgname}-${pkgver}.tgz"
}
package() {
npm install --global --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "$srcdir/$_pkgname-$pkgver.tgz"
chown -R root:root "${pkgdir}"
}
|