summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 991cd7e03dbb74d1b457a41020e283419e938ba1 (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
# Maintainer: Felix E. Klee <felix.klee@inka.de>

_gitname=vncdesk
pkgname="$_gitname"-git
pkgver=1.4.1
pkgrel=2
pkgdesc="Runs applications via VNC. Useful for scaling on high DPI (HiDPI) screens."
arch=('any')
url="https://github.com/feklee/vncdesk"
license=('custom:WTFPL')
depends=('tigervnc' 'gtk-vnc' 'python' 'python-gobject')
makedepends=('git' 'python-setuptools')
source=('git+https://github.com/feklee/vncdesk')
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_gitname"
    git describe --long | sed 's/v\([0-9]\.[0-9]\.[0-9]\).*/\1/'
}

build() {
    cd "$srcdir/$_gitname"
    git checkout v$(pkgver)
}

package() {
	cd "$srcdir/$_gitname"
    cat << EOF >vncdesk/font_path.py
font_path = ','.join(['/usr/share/fonts/misc/',
                      '/usr/share/fonts/75dpi/',
                      '/usr/share/fonts/100dpi/',
                      '/usr/share/fonts/Type1/'])
EOF
    python setup.py install --root="${pkgdir}"
    install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}