summaryrefslogtreecommitdiff
path: root/user/xf86-video-openchrome/APKBUILD
blob: 7846e5efcfe7ef22dab39b990446bb486b1f88ca (plain) (blame)
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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xf86-video-openchrome
pkgver=0.6.0
pkgrel=1
pkgdesc="S3/VIA Chrome video driver for X11"
url="https://www.X.Org/"
arch="all"
license="X11"
depends=""
makedepends="libxv-dev libxvmc-dev xorgproto-dev xorg-server-dev"
subpackages="$pkgname-doc"
source="https://www.x.org/releases/individual/driver/xf86-video-openchrome-$pkgver.tar.bz2"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	export CFLAGS="$CFLAGS -fcommon"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="f074e70d54c87a9d6e1b52c2c2d72d7c551dcb59a5f34c0a5f9495db1a6e45db4300d51fabf7eedfbe91f964f9422931c752a49b322715c6aa9ddb0db9dd6004  xf86-video-openchrome-0.6.0.tar.bz2"