summaryrefslogtreecommitdiffstats
path: root/main/spice/APKBUILD
blob: ecbe6f263ece62d162c248f8d81f2d552a9d0e4c (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=spice
pkgver=0.12.5
pkgrel=2
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 libxinerama-dev"
makedepends="$depends_dev alsa-lib-dev libjpeg-turbo-dev libxrandr-dev
	cyrus-sasl-dev libxfixes-dev python-dev bash cegui06-dev py-parsing
	glib-dev"
install=""
subpackages="$pkgname-dev $pkgname-server $pkgname-client"
source="http://www.spice-space.org/download/releases/spice-$pkgver.tar.bz2
	cstdarg.patch
	fix-non-x86-build.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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-gui \
		--enable-client \
		--disable-smartcard \
		|| return 1
	make -C spice-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="1256286214fe402703c0a01bd3a85319  spice-0.12.5.tar.bz2
3e61fdc18bf201a2b54b332fdbe2912e  cstdarg.patch
cf73b5f5ee618b9de82a6025b4d4cfff  fix-non-x86-build.patch"
sha256sums="4209a20d8f67cb99a8a6ac499cfe79a18d4ca226360457954a223d6795c2f581  spice-0.12.5.tar.bz2
bc2219f68ed701e74a02c5196c934bb3e6fbf5813005f39e41e911668e0e622c  cstdarg.patch
e7d13db986ef482c9788f7c90eb3d7de11d662536a21c9812b332da79659fb6a  fix-non-x86-build.patch"
sha512sums="1501c913ba3b1856444536a9bfda7a2138a96088f940b483e963df342b91deb945d77bfb3c83ebddfcd7c3008695c0dd7df30ff9fd8502cbbcac1c610a273572  spice-0.12.5.tar.bz2
040f4104d9658465cb2ffa72101f958341497898d86ee82bdf31bd65e5f3497822be4b9b3e9eca2a9b965385481190a2fb4ca5fb26b89391ab1598fc23d300c9  cstdarg.patch
0420d8e18fd900edbdbe7d100ca2b35b0e8a3466cce6846fd44ecba82da942139fab07111f9f6e7b49d11760028f19f17b75a56f0b7a52651450ae03695e0a90  fix-non-x86-build.patch"