aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a5d7112f72f1d75d6343df10c59e0543ed5b96ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Hoàng Văn Khải <hvksmr1996@gmail.com>

pkgname=code-server
pkgver=1.31.1_100
pkgrel=1
pkgdesc="Run VS Code on a remote server"
arch=('x86_64')
url="https://github.com/codercom/code-server"
license=(MIT)
makedepends=(coreutils)
source=(https://github.com/codercom/code-server/releases/download/${pkgver//_/-}/code-server-${pkgver//_/-}-linux-x64.tar.gz)
sha512sums=('9ca143aec2f33b5c0e4138d76c5182bd021efaed88c664f11e64c150cc3f9ca6e2648edc23d7431f4aeb509fa0bbf0a51d51898afcdc0cb964aa95ad8e601124')

build() {
  cd "$srcdir/code-server-${pkgver//_/-}-linux-x64"
}

package() {
  cd "$srcdir/code-server-${pkgver//_/-}-linux-x64"

  install -Dm755 code-server "$pkgdir"/usr/bin/code-server
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}