summaryrefslogtreecommitdiffstats
path: root/main/spice-protocol/APKBUILD
blob: 194b69a0b7aeb9b72e217786bb7708805e0eed8e (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=spice-protocol
pkgver=0.12.6
pkgrel=0
pkgdesc="Spice protocol header files"
url="http://www.spice-space.org/"
arch="noarch"
license="BSD and LGPLv2+"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="http://www.spice-space.org/download/releases/spice-protocol-$pkgver.tar.bz2"

_builddir="$srcdir"/spice-protocol-$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 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="797d18156ab893e48778cb097b21bb2b  spice-protocol-0.12.6.tar.bz2"
sha256sums="9d4745602eb2ab1d1c1ab98b4babf587574870993b4faefe354ac57bb5e8259b  spice-protocol-0.12.6.tar.bz2"
sha512sums="0c9a1dcc6c0afbfb7350b7003a261b692de4864afc8bd8f33e7a730753f43112977bfa5148e0b5af3231d43d9a057859f34f6dff0c738d9aaea07f70138e1f13  spice-protocol-0.12.6.tar.bz2"