aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xf86-video-modesetting/APKBUILD
blob: 50e5b59ec1b2e176922f789b5d39824370121acf (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-modesetting
pkgver=0.8.1
pkgrel=0
pkgdesc="X.org generic modesetting video drive"
url="http://cgit.freedesktop.org/xorg/driver/xf86-video-modesetting/"
arch="all"
license="custom"
depends=""
depends_dev="xorg-server-dev udev-dev libdrm-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://xorg.freedesktop.org/releases/individual/driver/xf86-video-modesetting-$pkgver.tar.bz2"

_builddir="$srcdir"/xf86-video-modesetting-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
}

md5sums="eb275e1ff0031897bcf23e2e5cb8655a  xf86-video-modesetting-0.8.1.tar.bz2"
sha256sums="3ba8d8d7cb679497abc6486e2e843f8ea1582d830a27448ed4c90413e58312ca  xf86-video-modesetting-0.8.1.tar.bz2"
sha512sums="1f18a90653a5e72f0285c7b4640051b63f7795e6c8ffb7e4055982c09ef5902c182657e4441292e8ebb42ef21cf730156b744603aa63bb8d803d8f5df55404b7  xf86-video-modesetting-0.8.1.tar.bz2"