aboutsummaryrefslogtreecommitdiffstats
path: root/main/glamor-egl/APKBUILD
blob: 00e3982f03a5b7dce435a8d8c20a9494f0cacfb1 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=glamor-egl
pkgver=0.6.0
pkgrel=2
pkgdesc="X.org glamor library"
url="http://www.freedesktop.org/wiki/Software/Glamor"
arch="all"
license="MIT"
depends=""
depends_dev="mesa-dev"
makedepends="$depends_dev xorg-server-dev"
install=""
subpackages="$pkgname-dev"
source="http://xorg.freedesktop.org/releases/individual/driver/glamor-egl-$pkgver.tar.bz2"

_builddir="$srcdir"/glamor-egl-$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 \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="b3668594675f71a75153ee52dbd35535  glamor-egl-0.6.0.tar.bz2"
sha256sums="66531b56e6054eb53daa7bd57eb6358a7ead1b84f63419606e69d1092365e5c9  glamor-egl-0.6.0.tar.bz2"
sha512sums="aa3a88e85ae069e487c88a1839c21b0404c5a2a343a63f2c1d71ffb8d86288eb42dfcb30c8cce4c417b361417e9fae7c1cdabadc07ad40bb97c995c410dc0c1b  glamor-egl-0.6.0.tar.bz2"