aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdrm/APKBUILD
blob: 16501852a4b132ded0882536cacf03bada823c9c (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdrm
pkgver=2.4.71
pkgrel=0
pkgdesc="Userspace interface to kernel DRM services"
url="http://dri.freedesktop.org/"
arch="all"
license="custom"
depends=""
depends_dev="linux-headers"
makedepends="$depends_dev libpthread-stubs eudev-dev libpciaccess-dev"
subpackages="$pkgname-dev"
source="http://dri.freedesktop.org/$pkgname/$pkgname-$pkgver.tar.bz2
	"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-udev \
		--disable-manpages \
		--disable-valgrind \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="776bccc84618b616fc57a7143836ae7a  libdrm-2.4.71.tar.bz2"
sha256sums="c66287ddeee5f46ea8f8880b94b80acb3bbc33ba6321d17767eef145046df9b8  libdrm-2.4.71.tar.bz2"
sha512sums="82c7a0228c601feed612131919c296a62ce7f41287810ab7cc75e01d7ba8af884044077a0dacd8b09be077dc54a4ceab80d9104f285db4a93bc0e66d00d6c77d  libdrm-2.4.71.tar.bz2"