aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-vmware/APKBUILD
blob: 934f5fbf8cac0afe4f232a81ee51c917154ab7ce (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-vmware
pkgver=13.0.1
pkgrel=1
pkgdesc="X.org VMWare video driver"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
depends=
makedepends="pkgconfig xorg-server-dev videoproto renderproto xproto libdrm-dev
	fontsproto xf86dgaproto xineramaproto randrproto xextproto libxi-dev"

source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
	xatracker-v2-fixes.patch
	"

_builddir="$srcdir"/xf86-video-vmware-$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 "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="b08e0195ebf3f88a82129322cb93da08  xf86-video-vmware-13.0.1.tar.bz2
bb2a64202644238815b9b223759a8515  xatracker-v2-fixes.patch"
sha256sums="802dda415c22412edad6c3df44fe18a06e91d0f8456d9a58bac0d340fdf8fe3d  xf86-video-vmware-13.0.1.tar.bz2
d943e66f1735edb2231fe8396065c1c4702cb9cba96cd9ff3a6afba75782bfd3  xatracker-v2-fixes.patch"
sha512sums="2faf5fd524dffd2cd89a8b5a06b5470acbc51c3ee4f48bafc425b8e9c7c76d294201651cfb8c1d104c313885108e22abb6da736de1f3dbcf134a0926158ed147  xf86-video-vmware-13.0.1.tar.bz2
d87398febf7e900881ee7cdf137492c3759ffca5c90d2c5b8b0d2872cc7971fc8b37b42b5b298f08350b449fc91e4158b69af8275ea99f7a8a60e7c42cf9b45e  xatracker-v2-fixes.patch"