aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-ark/APKBUILD
blob: 3d0cf8ce19042e4a52a34b62a1e4a0d1667beb01 (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-ark
pkgver=0.7.5
pkgrel=5
pkgdesc="X.Org driver for ark cards"
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
	mibstore.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/drivers/*.la || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="2e9809b5ae3f01a56be0d6e5441da03c  xf86-video-ark-0.7.5.tar.bz2
d4625a8bf75d55959faebadcae02e3e4  mibstore.patch"
sha256sums="c690e046f34a393aac1c8d9616b4790e93cda60a460b00b9597d322175dbe51e  xf86-video-ark-0.7.5.tar.bz2
32130c11a9af2d125a8376c0fc5cc7a94ecec5b88f33005ec9cc54423feeffb9  mibstore.patch"
sha512sums="67c2b4e2109bf9d84a007c9679d35e7c0a4e4ddcdb7be9fa5070ce7e2f666e018d8421ddd4890cf3abb4eb37e060a10666c62a9efbb5369eb7cd8647ee18a644  xf86-video-ark-0.7.5.tar.bz2
f7ef3d7003e75ae6d27f4ec1100e6cb42546f3dd5871a2d92ad779909ebd1243976679f14e1a8443ba17bb3cd36fa755cdbda4be3627a49af0033513309ad6bb  mibstore.patch"