aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdrm/APKBUILD
blob: 1e6e822afc834afba8fbb674246184b4bff139f1 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdrm
pkgver=2.4.68
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
	"

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

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./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 "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="bcc96848d969cecf28223f668eeff354  libdrm-2.4.68.tar.bz2"
sha256sums="5b4bd9a5922929bc716411cb74061fbf31b06ba36feb89bc1358a91a8d0ca9df  libdrm-2.4.68.tar.bz2"
sha512sums="646ce2eb6b4d81120d5767f0c4014bfd042ea7030e33aa9a1d016129222d22a0dd012e530d37e1d580f4cc9f4d38e35176ce4d7abeccc086b38ba685cff8e38e  libdrm-2.4.68.tar.bz2"