aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-xgixp/APKBUILD
blob: 996abad123725a17cbb18af7377fb380eca872c7 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-xgixp
pkgver=1.8.1
pkgrel=6
pkgdesc="X.org XGIXP video driver"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
depends=
makedepends="xorg-server-dev libdrm-dev xf86driproto glproto mesa-dev"
source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
	git-fixes.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="590ec61b6368fee3805623958eb843cb  xf86-video-xgixp-1.8.1.tar.bz2
0cdb35b7969a8278dae73b3ffa9d0672  git-fixes.patch"
sha256sums="e1c6cbbc5756c8bac92334b77863ef406ad8e5ddf07c8af89204299ca0c41d55  xf86-video-xgixp-1.8.1.tar.bz2
7e7255b1152197633828f424954340fc7e400d2e79674ac9ad944ffd1f058847  git-fixes.patch"
sha512sums="ab45909e4b48cc9dfa3daf5d2cb50dff6ad7d841fe1dc75ea699a7c555d70a6f565d97b7c68f4c58da16ad022b973892e229f8d0f4059c8712cf513c1ec10f84  xf86-video-xgixp-1.8.1.tar.bz2
5a954417f860d87b7aaee92fd698f1ccdff440180a74909843266f1a8aec626e130faf71cf2a8429b90dae31460e4a8d56fc2dd8868d1914c1a7053fa97fad39  git-fixes.patch"