aboutsummaryrefslogtreecommitdiffstats
path: root/main/gtk-vnc/APKBUILD
blob: 4e2bfffbc650da0424cb53f27df47555100f9f1b (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
47
48
49
50
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtk-vnc
pkgver=0.5.4
pkgrel=0
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 gettext-dev intltool expat-dev
	libgcrypt-dev libgpg-error-dev cyrus-sasl-dev perl-text-csv
	gobject-introspection-dev vala sed"
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"

subpackages="$pkgname-dev gvncviewer $pkgname-lang $pkgname-doc"
_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
}

build () {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-examples \
		--enable-introspection \
		--with-gtk=3.0 \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	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="bc7b79c4b8124294dacf91b8128a158c  gtk-vnc-0.5.4.tar.xz"
sha256sums="488aa97a76ce6868160699cd45d4a0ee0fe6f0ad4631737c6ddd84450f6c9ce7  gtk-vnc-0.5.4.tar.xz"
sha512sums="068f7e29d40c677c9453364e33ab3a57e155dd0715299c8dee3f9933ecdb2e3bc4aea6dd722f5bc846d9b883e4f5a6de7b46742f004b348a551100ea7720da61  gtk-vnc-0.5.4.tar.xz"