2011-11-15 09:54:27 +01:00
|
|
|
# Template file for 'gtk-vnc'
|
|
|
|
pkgname=gtk-vnc
|
2014-06-06 09:49:21 +02:00
|
|
|
version=0.5.3
|
2014-06-16 14:40:33 +02:00
|
|
|
revision=2
|
2014-06-06 09:49:21 +02:00
|
|
|
hostmakedepends="perl pkg-config intltool"
|
|
|
|
makedepends="gobject-introspection gtk+-devel gtk+3-devel gnutls-devel>=3.1.5 libsasl-devel vala-devel python-devel pygtk-devel"
|
2011-11-15 09:54:27 +01:00
|
|
|
short_desc="VNC viewer widget for GTK"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.gnome.org"
|
|
|
|
license="GPL-2"
|
2014-06-06 09:49:21 +02:00
|
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
|
|
|
checksum=d490a6c8f40e550d43aef0043ce3bec498ec220d5eb3dc5cdcff8fd561149caf
|
2011-11-15 09:54:27 +01:00
|
|
|
|
2013-01-12 15:24:02 +01:00
|
|
|
post_extract() {
|
|
|
|
cp -a ${wrksrc} /tmp/gtk2-build
|
|
|
|
cp -a ${wrksrc} /tmp/gtk3-build
|
|
|
|
mv /tmp/gtk[23]-build ${wrksrc}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
cd ${wrksrc}/gtk2-build
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} --with-python --disable-static --with-gtk=2.0
|
2013-01-12 15:24:02 +01:00
|
|
|
|
|
|
|
cd ${wrksrc}/gtk3-build
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} --with-python --disable-static --with-gtk=3.0
|
2013-01-12 15:24:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2013-05-26 10:41:55 +02:00
|
|
|
cd ${wrksrc}/gtk2-build
|
|
|
|
make ${makejobs}
|
|
|
|
|
|
|
|
cd ${wrksrc}/gtk3-build
|
|
|
|
make ${makejobs}
|
2013-01-12 15:24:02 +01:00
|
|
|
}
|
2011-11-15 09:54:27 +01:00
|
|
|
|
2013-01-12 15:24:02 +01:00
|
|
|
do_install() {
|
2013-05-26 10:41:55 +02:00
|
|
|
cd ${wrksrc}/gtk2-build
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
|
|
|
|
cd ${wrksrc}/gtk3-build
|
|
|
|
make DESTDIR=${DESTDIR} install
|
2013-01-12 15:24:02 +01:00
|
|
|
}
|
2013-04-12 15:11:12 +02:00
|
|
|
|
|
|
|
gtk2-vnc_package() {
|
2013-05-26 10:41:55 +02:00
|
|
|
short_desc+=" - GTK+2 port"
|
2013-04-12 15:11:12 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libgtk-vnc-1.0.so*"
|
2013-04-16 11:41:22 +02:00
|
|
|
vmove usr/lib/girepository-1.0/GtkVnc-1.0.typelib
|
2013-04-12 15:11:12 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gtk2-vnc-devel_package() {
|
2014-06-06 09:49:21 +02:00
|
|
|
depends="gtk+-devel gtk-vnc-devel>=${version}_${revision}"
|
2013-05-26 10:41:55 +02:00
|
|
|
short_desc+=" - GTK+2 development files"
|
2013-04-12 15:11:12 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include/gtk-vnc-1.0
|
|
|
|
#vmove usr/share/vala/vapi/gtk-vnc-1.0.vapi
|
|
|
|
vmove usr/share/gir-1.0/GtkVnc-1.0.gir
|
|
|
|
vmove usr/lib/pkgconfig/gtk-vnc-1.0.pc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gtk2-vnc-python_package() {
|
2013-05-26 10:41:55 +02:00
|
|
|
short_desc+=" - python bindings"
|
2013-04-12 15:11:12 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python2.7
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gtk-vnc-devel_package() {
|
2014-06-06 09:49:21 +02:00
|
|
|
depends="glib-devel gtk+3-devel gtk-vnc>=${version}_${revision}"
|
2013-05-26 10:41:55 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 15:11:12 +02:00
|
|
|
pkg_install() {
|
2013-04-16 11:41:22 +02:00
|
|
|
vmove usr/include/gvnc-1.0
|
|
|
|
vmove usr/include/gtk-vnc-2.0
|
|
|
|
vmove usr/lib/pkgconfig/gtk-vnc-2.0.pc
|
|
|
|
vmove usr/lib/pkgconfig/gvnc-1.0.pc
|
|
|
|
vmove usr/share/vala/vapi/gtk-vnc-2.0.deps
|
|
|
|
vmove usr/share/vala/vapi/gtk-vnc-2.0.vapi
|
|
|
|
vmove usr/share/vala/vapi/gvnc-1.0.vapi
|
|
|
|
vmove usr/share/gir-1.0/GVnc-1.0.gir
|
|
|
|
vmove usr/share/gir-1.0/GtkVnc-2.0.gir
|
2014-06-06 09:49:21 +02:00
|
|
|
vmove usr/lib/*.so
|
2013-04-12 15:11:12 +02:00
|
|
|
}
|
|
|
|
}
|