summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7018b7bc0cc99018b589747579047bc5d533773e (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Radek Podgorny <radek@podgorny.cz>
pkgname=novnc-git
pkgver=20150614.1
pkgrel=1
pkgdesc="javascript vnc client"
arch=(any)
url="https://github.com/kanaka/noVNC"
license=('GPL')
depends=()
provides=('novnc')
conflicts=('novnc')
source=("novnc::git://github.com/kanaka/noVNC.git")
md5sums=('SKIP')
optdepends=(
	'websockify: for vnc servers without websocket support'
)

pkgver() {
  cd   "$srcdir"/novnc
  echo "$(git log -1 --format="%cd" --date=short | sed 's|-||g').$(git rev-list --count master)"
}

prepare() {
  cd $srcdir/novnc
  rm -f utils/*.o
  rm -rf .git
}

build() {
  cd $srcdir/novnc
  #make -C utils
}

package() {
  cd $srcdir/novnc
  mkdir -p $pkgdir/usr/share/novnc $pkgdir/usr/share/doc/novnc $pkgdir/usr/bin
  cp -a app core vendor utils vnc.html vnc_lite.html $pkgdir/usr/share/novnc/
  cp -a LICENSE.txt README.md $pkgdir/usr/share/doc/novnc
  cat >$pkgdir/usr/bin/novnc <<EOF
#!/bin/sh

cd /usr/share/novnc || exit 1
exec ./utils/launch.sh \$*
EOF
  chmod 0755 $pkgdir/usr/bin/novnc
}