aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdrm/APKBUILD
blob: 09ea4435c73b3832bdb3ede2864582f477b68f4a (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.67
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="b844c6af34e613ebf52f80b3cd8d7055  libdrm-2.4.67.tar.bz2"
sha256sums="ee5b71e1113be37544d0752681c12f040c01f782e2933df7d7bc21fd0d10cebe  libdrm-2.4.67.tar.bz2"
sha512sums="3c48828b65b32a5e6a17b05b05d17ea02315b1c86c730d386d0680f2d8f312477cf5adc810a898a3734504c96ff376fc46b2d813b34cb8fe84a70b533c18ac2a  libdrm-2.4.67.tar.bz2"