archrelease: copy trunk to community-any
[arch-community.git] / tailwindcss-language-server / trunk / PKGBUILD
blobc5d490d9e54d658b5cb733abf3d02b4530fa9d99
1 # Maintainer: Daniel M. Capella <polyzen@archlinux.org>
2 # Contributor: Agorgianitis Loukas <agorglouk@gmail.com>
4 pkgname=tailwindcss-language-server
5 pkgver=0.0.13
6 pkgrel=1
7 pkgdesc='Tailwind CSS Language Server'
8 arch=('any')
9 url=https://github.com/tailwindlabs/tailwindcss-intellisense/tree/master/packages/tailwindcss-language-server
10 license=('MIT')
11 depends=('nodejs')
12 makedepends=('git' 'npm')
13 conflicts=("vscode-$pkgname-bin")
14 replaces=("vscode-$pkgname-bin")
15 source=("git+https://github.com/tailwindlabs/tailwindcss-intellisense.git#tag=@tailwindcss/language-server@v$pkgver")
16 b2sums=('SKIP')
18 prepare() {
19   cd tailwindcss-intellisense
20   npm ci
23 build() {
24   cd tailwindcss-intellisense
25   npm run bootstrap
26   cd packages/$pkgname
27   npm run build
30 package() {
31   cd tailwindcss-intellisense/packages/$pkgname
32   install -Dt "$pkgdir"/usr/bin bin/$pkgname
33   install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE