From 5c58bdbc965aca4a880ae4c342133ae2299485cc Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 2 Dec 2011 10:49:25 +0000 Subject: main/spice: moved from testing --- main/spice/APKBUILD | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 main/spice/APKBUILD (limited to 'main/spice/APKBUILD') diff --git a/main/spice/APKBUILD b/main/spice/APKBUILD new file mode 100644 index 000000000..82c5787aa --- /dev/null +++ b/main/spice/APKBUILD @@ -0,0 +1,63 @@ +# Contributor: Natanael Copa +# Maintainer: Natanael Copa +pkgname=spice +pkgver=0.10.0 +pkgrel=1 +pkgdesc="Implements the SPICE protocol" +url="http://www.spice-space.org/" +arch="all" +license="LGPLv2+" +depends="" +depends_dev="spice-protocol pixman-dev celt051-dev openssl-dev" +makedepends="$depends_dev alsa-lib-dev jpeg-dev libxrandr-dev cyrus-sasl-dev + libxfixes-dev python-dev bash cegui06-dev" +install="" +subpackages="$pkgname-dev $pkgname-server $pkgname-client" +source="http://www.spice-space.org/download/releases/spice-$pkgver.tar.bz2 + cstdarg.patch" + +_builddir="$srcdir"/spice-$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 +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --enable-gui \ + || return 1 + make -C common WARN_CFLAGS='' || return 1 + make -C client WARN_CFLAGS='' || return 1 + make WARN_CFLAGS='' || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +server() { + pkgdesc="Server library for SPICE" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/*server.so.* "$subpkgdir"/usr/lib/ +} + +client() { + pkgdesc="SPICE client" + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/spicec "$subpkgdir"/usr/bin/ +} + +md5sums="d9f0b0280c9e2291623c9560e156be26 spice-0.10.0.tar.bz2 +3e61fdc18bf201a2b54b332fdbe2912e cstdarg.patch" -- cgit v1.2.3