APKBUILD 1.93 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-chips
3
pkgver=1.2.5
4
pkgrel=4
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="Chips and Technologies video driver"
url="http://xorg.freedesktop.org/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8
license="custom"
9
subpackages="$pkgname-doc"
10 11
depends=
makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
Natanael Copa's avatar
Natanael Copa committed
12 13
	videoproto renderproto"

14
source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
15
	mibstore.patch
16
	iopl.h"
Natanael Copa's avatar
Natanael Copa committed
17

18 19
prepare() {
	cd "$srcdir"/$pkgname-$pkgver
20
	update_config_sub || return 1
21 22 23 24 25
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
26
	! [ -e util/iopl.h ] && cp "$srcdir"/iopl.h util/
27
}
28
build() {
Natanael Copa's avatar
Natanael Copa committed
29
	cd "$srcdir"/$pkgname-$pkgver
30
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
31 32 33 34 35
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
36
	make || return 1
37 38 39 40
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
Natanael Copa's avatar
Natanael Copa committed
41
	make DESTDIR="$pkgdir" install || return 1
42
	rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
Natanael Copa's avatar
Natanael Copa committed
43 44
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
45
md5sums="56be62612f98a0cf469a2a78c0a14ed5  xf86-video-chips-1.2.5.tar.bz2
46
d778298220dd261af852b50d986f72ca  mibstore.patch
47
e4a7c922ab37bb4c8f44f731c9bec911  iopl.h"
48 49 50 51 52 53
sha256sums="8d3c744d035b3d769049647bb8022ec24500d31b1b224cd0ea4efe61f86bfed2  xf86-video-chips-1.2.5.tar.bz2
36165ebc70926ab5a8fe4331c5ce88c7f5f2e6979170b849ac1c2c99b3d1a804  mibstore.patch
d04607e51f9064fb128beceda9660feadb7775b585466a5b9fb04f942effc670  iopl.h"
sha512sums="3468d453fb3bc01b115d0a4a9f10bebe43b89c9cd997e2991d459a40a2f8a0e3ed2cb40bfcb2b80fae853af8c9ea6a94c82d73d16a27fe9612c8a1f2a6fbd3d4  xf86-video-chips-1.2.5.tar.bz2
b2ef8a538fd5764d072a1310f80bd1f7f7886adf5ffcacf1f2dcc58b054e91ad88a9aad262e8c5494ee4d29471d0e771bd8792f4760680efa16f6d177a932f44  mibstore.patch
9fc3dbf8325425b755b08e9478225872468cacda5c97a2eb0c987bf0c726ca89d559d8db9d00ac372c52b8bd55912a9fa20f60eb4bdd2a2df093857a0023714c  iopl.h"