summaryrefslogtreecommitdiffstats
path: root/main/spice-gtk/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-06-06 08:07:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-06-06 08:07:44 +0000
commite1bcf0f24072271fca72671f2f064fb40bf9d0ff (patch)
tree9272a9b0fdfe22047d9da7b8b0d9d1834b40131f /main/spice-gtk/APKBUILD
parenta3ec5f7b7b75b7d2cb7fb36c80e2c94f7c04f76e (diff)
downloadaports-e1bcf0f24072271fca72671f2f064fb40bf9d0ff.tar.bz2
aports-e1bcf0f24072271fca72671f2f064fb40bf9d0ff.tar.xz
main/spice-gtk: moved from testing
Diffstat (limited to 'main/spice-gtk/APKBUILD')
-rw-r--r--main/spice-gtk/APKBUILD86
1 files changed, 86 insertions, 0 deletions
diff --git a/main/spice-gtk/APKBUILD b/main/spice-gtk/APKBUILD
new file mode 100644
index 000000000..3a3ba1b28
--- /dev/null
+++ b/main/spice-gtk/APKBUILD
@@ -0,0 +1,86 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=spice-gtk
+pkgver=0.16
+pkgrel=1
+pkgdesc="A GTK+ widget for SPICE clients"
+url="http://spice-space.org/page/Spice-Gtk"
+arch="all"
+license="LGPLv2+"
+depends=""
+depends_dev="gtk+2.0-dev celt051-dev polkit-dev libxrandr-dev openssl-dev
+ cyrus-sasl-dev gst-plugins-base-dev jpeg-dev zlib-dev"
+makedepends="$depends_dev bash usbutils py-gtk-dev python-dev udev-dev
+ usbredir-dev
+ polkit-dev py-parsing py-gobject-dev gobject-introspection-dev
+ automake autoconf libtool
+ "
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-tools
+ spice-glib:glib py-$pkgname:py"
+
+source="http://www.spice-space.org/download/gtk/spice-gtk-$pkgver.tar.bz2
+ 0001-build-fix-for-automake-1.13.patch
+ codegendir.patch"
+
+_builddir="$srcdir"/spice-gtk-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ libtoolize --force && aclocal -I m4 && autoconf \
+ && automake --add-missing || return 1
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --with-gtk=2.0 \
+ --with-audio=gstreamer \
+ --enable-smartcard=no \
+ --enable-usbredir=yes \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make -j1 DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la \
+ "$pkgdir"//usr/lib/py*/site-packages/*.la
+}
+
+tools() {
+ pkgdesc=""
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+glib() {
+ pkgdesc=""
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/*-glib-*.so* \
+ "$pkgdir"/usr/lib/*controller.so.* \
+ "$subpkgdir"/usr/lib/ || return 1
+ cd "$pkgdir"
+ for i in $(find -name GLib*.typelib); do
+ mkdir -p "$subpkgdir"/${i%/*}
+ mv $i "$subpkgdir"/${i%/*}
+ done
+}
+
+py() {
+ pkgdsec=""
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
+}
+
+md5sums="1b61697d643f1acc0e2950834dfa78f4 spice-gtk-0.16.tar.bz2
+72970a1cd51f4a42332e38981fd70ccb 0001-build-fix-for-automake-1.13.patch
+e267f9505d0be143a308fb3b574fd153 codegendir.patch"