summaryrefslogtreecommitdiffstats
path: root/main/gtk-vnc/APKBUILD
blob: e3c1e32807d01359d1fbcf2faf050126f0f70b60 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtk-vnc
pkgver=0.5.2
pkgrel=2
pkgdesc="A VNC viewer widget for GTK"
url="http://live.gnome.org/gtk-vnc"
arch="all"
license="LGPL"
depends_dev="gtk+3.0-dev gnutls-dev glib-dev"
makedepends="$depends_dev libiconv-dev gettext-dev intltool expat-dev
	libgcrypt-dev libgpg-error-dev cyrus-sasl-dev perl-text-csv
	gobject-introspection-dev vala"
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"

subpackages="$pkgname-dev gvncviewer $pkgname-lang $pkgname-doc"
build () {
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr \
		--with-examples \
		--enable-introspection \
		--with-gtk=3.0 \
		--disable-static || return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make -j1 DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

gvncviewer() {
	pkgdesc="Demo application for gtk-vnc"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

md5sums="591f5c0efff931336cba5b56e0c64e0d  gtk-vnc-0.5.2.tar.xz"
sha256sums="b51bda7edebb82ab142c292bd1b1493406bc8225a5c834d854bbafef9e9a471f  gtk-vnc-0.5.2.tar.xz"
sha512sums="e58a0bbb4c5d1802d51936d5869ccad55cd405f6939f49445e224863866a33173e47e055d88f50e60b3f864a7e393faf0c78a219a08ee8a8c1fc8fe108f9824a  gtk-vnc-0.5.2.tar.xz"