summaryrefslogtreecommitdiffstats
path: root/main/spice/APKBUILD
blob: 9fd9fc7e68987cb152ad5182adb1b4540e3124b4 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=spice
pkgver=0.12.2
pkgrel=0
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"

_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 \
		--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="23b06b993083cf5b90578054c6f5db58  spice-0.12.2.tar.bz2
3e61fdc18bf201a2b54b332fdbe2912e  cstdarg.patch"