aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-s3/APKBUILD
blob: e485bfe4c4465bbb82120e9d778c49d6f235f25b (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-s3
pkgver=0.6.5
pkgrel=9
pkgdesc="X.Org driver for s3 cards"
url="http://xorg.freedesktop.org/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
depends=
makedepends="xorg-server-dev libxi-dev fontsproto randrproto util-macros
	videoproto renderproto"

source="http://www.x.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
	mibstore.patch"

builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$builddir"
	update_config_sub
	default_prepare
}

build() {
	cd "$builddir"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
sha512sums="bd7d93008dae33b0b7943b2c81de5f39b1d8224ccebd0cdb9e8d22e7ea7fb0981adf6afd44e24162fa8a076d3e250f93316fd3a25cada2d65166a6bc4d13c267  xf86-video-s3-0.6.5.tar.bz2
72a4176d178f968e769b8cd61e2f2eed6524c75f8f0c9d2f51acece24e0b7ad1953c9c4d271c9af02b4ee68ad75dd06d9cce71b3bce6fdf5965e1e9b40d6eb49  mibstore.patch"