aboutsummaryrefslogtreecommitdiffstats
path: root/main/spice-protocol/APKBUILD
blob: a22c075b7d1e32dc6bb95249704beffc0376751f (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=spice-protocol
pkgver=0.12.9
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
	portable-membarrier.patch
	"

_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 pkgconfigdir=/usr/lib/pkgconfig DESTDIR="$pkgdir" install \
		|| return 1
}

md5sums="893d9940cd34428f92997f4b634484d3  spice-protocol-0.12.9.tar.bz2
ea0d68301fd623caab0b25aba6031d0d  portable-membarrier.patch"
sha256sums="290cf834dd156014d229b474e98006265ab9c5f63b4c471ea3b2cf8b2ff37876  spice-protocol-0.12.9.tar.bz2
4def9cbc322b0745c8134a124d7f85e2c4d6e54c4c1e4008f44e68422a58f5d2  portable-membarrier.patch"
sha512sums="91dd639459a5f20ac37af5a348dcc085690f66274a005017f68a773d23a063ac2c64430c5c78dcead2a144ad0c367b8b12beed0bf80bd146608c8edb9d8080c0  spice-protocol-0.12.9.tar.bz2
434b9cc8eed945de181259ae041eb97ee324f4aab54683b14594f9adfbab0ed2dabaaaf15fd696588f3e506809ea6fef86c43e3ac9b05fdd87df242c19b2765c  portable-membarrier.patch"