blob: 6ea5c34df67f5c5e42de8aed0a5676703b37da5f (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>
# Arch libdrm Maintainers:
# Jan de Groot
# Andreas Radke
# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
pkgname=libdrm-git
pkgver=20120905
pkgrel=1
pkgdesc='Userspace interface to kernel DRM services'
arch=(
i686
x86_64
mips64el
)
license=(
MIT
)
depends=(
libpciaccess
)
makedepends=(
cairo
git
valgrind
)
options=(
'!libtool'
)
url=http://dri.freedesktop.org/
provides=(
libdrm=2.4.39
)
conflicts=(
${pkgname%-git}
)
_gitroot=git://git.freedesktop.org/git/mesa/drm
_gitname=drm
build() {
cd $srcdir
msg 'Connecting to GIT server....'
if [[ -d $_gitname ]]; then
cd $_gitname && git pull origin
msg 'The local files are updated.'
else
git clone $_gitroot $_gitname
fi
msg 'GIT checkout done or server timeout'
msg 'Starting build...'
rm -rf $srcdir}/$_gitname-build
git clone $srcdir/$_gitname $srcdir/$_gitname-build
cd $srcdir/$_gitname-build
sed -i 's/PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs)//' configure.ac
./autogen.sh
./configure --prefix=/usr \
--enable-udev \
--enable-intel \
--enable-radeon \
--enable-nouveau \
--enable-vmwgfx
make V=1
}
check() {
cd $srcdir/$_gitname-build
make -k check
}
package() {
cd $srcdir/$_gitname-build
make DESTDIR=$pkgdir install
}
|