aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-s3virge/APKBUILD
blob: 56f4e0c54fffa1c4f039196eec0c3b6297951770 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-s3virge
pkgver=1.10.6
pkgrel=5
pkgdesc="S3 ViRGE video driver"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
depends=
makedepends="xorg-server-dev libxi-dev fontsproto randrproto
	videoproto renderproto"

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

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	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 "$srcdir"/$pkgname-$pkgver
	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="70956a12113b72e4f6d770e32b2ac4b9  xf86-video-s3virge-1.10.6.tar.bz2
07b8f81c373dbe3545268f0b8457db4a  git-fixes.patch"
sha256sums="85e1f6bdd3f39d0348c53602f481b974c13fc752c94931882817751c8ec8363e  xf86-video-s3virge-1.10.6.tar.bz2
8215be38309ad51d262c72775f8d0aff02c67a351e4ed17395faa6fb42dbf518  git-fixes.patch"
sha512sums="3de4806c42ec07767459e5ea703fd6106e4c8a90f67636f2d58d3a5745ae4beeafb51e1c8e09a74694dc246db4c7dd1c119c91d92b101be4db7b9c59d7f9e0ab  xf86-video-s3virge-1.10.6.tar.bz2
fa2917a000e7d6c39fadb804cc5f617d57b5d1b3ca46eefe4415d214fada025630b9674df3a3b6fabfebb3370e2c2cd8eb46048483fc3d4964852122a3105697  git-fixes.patch"