aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/code-server/APKBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/code-server/APKBUILD b/testing/code-server/APKBUILD
new file mode 100644
index 0000000000..1568ed563b
--- /dev/null
+++ b/testing/code-server/APKBUILD
@@ -0,0 +1,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"