blob: 1568ed563b83efd847e677a0161b3794a4c66184 (
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
28
|
# Contributor: wener <wenermail@gmail.com>
# Maintainer: wener <wenermail@gmail.com>
pkgname="code-server"
pkgver="1.1156"
_fullver="1.1156-vsc1.33.1"
pkgrel=0
pkgdesc="Run VS Code on a remote server"
url="https://github.com/cdr/code-server"
# other arch will failed
arch="x86_64"
license="MIT"
# py3 will fail node-gyp
makedepends="yarn npm python2"
source="$pkgname-$_fullver.tar.gz::https://github.com/cdr/code-server/archive/$_fullver.tar.gz"
builddir="$srcdir/$pkgname-$_fullver"
# there is no test in source
options="!check"
build() {
yarn
NODE_ENV=production yarn task build:server:binary
}
package() {
install -D -m 755 "$builddir"/packages/server/cli-musl-x64 "$pkgdir"/usr/bin/code-server
}
sha512sums="886844e8d89d26974df3f8875ef99b7609ca4e2a75fdad633e7c262469f1b52447ccc9261f919af9f45406e2d5d41458e05432d225db45363b287c7e1dfdb3dd code-server-1.1156-vsc1.33.1.tar.gz"
|