aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-sis/APKBUILD
blob: 29720abf849eead13fad10c9a608b6fc25397f00 (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-sis
pkgver=0.10.7
pkgrel=7
pkgdesc="X.org SiS video driver"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
depends=
makedepends="pkgconfig xorg-server-dev videoproto renderproto xproto
	fontsproto xf86dgaproto xineramaproto randrproto xextproto mesa-dev
	xf86driproto glproto libxi-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
	rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="f01e5e20e37342acf1983d269886171b  xf86-video-sis-0.10.7.tar.bz2
78e366bfdc9755c461b2c66e54d384f0  git-fixes.patch"
sha256sums="be2eb6acba081e88dabc5be9db379e3da89a4d4edeb68064f204bf343a411cd0  xf86-video-sis-0.10.7.tar.bz2
a340653dbe1bbd0fff1b881b1245793149d46a397baf51264ce9a42e1a254eab  git-fixes.patch"
sha512sums="095fd47803e8296ca3769b5c62e9399b6759023660c42b215b708dfed456e3cf2dad93b8abcb48887bd40e0d0b1435d4e1d711a721f5cb55bef4d7093ab387fa  xf86-video-sis-0.10.7.tar.bz2
c1829ceb30d9b1f7eb16c0d2d286acc3c9f3b092241e8b1ccb5109d929f757599213c555adba16f95910747a6008e870f40b7373f4a511f293063ec44191d641  git-fixes.patch"