updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / libwfd-git / PKGBUILD
blobdc35fe246cda38870924af7b7df6276e7221a635
1 # Maintainer: LEW21 <lew21@xtreeme.org>
3 pkgname=libwfd-git
4 pkgver=20110828
5 pkgrel=1
6 pkgdesc="OpenWF - Linux DRM-based implementation"
7 arch=(i686 x86_64)
8 url="http://cgit.freedesktop.org/~bnf/owfdrm/"
9 license=('LGPL')
10 depends=('mesa-full') # You need gbm, latest mesa-full provides it.
11 provides=("libwfd=1.0")
12 conflicts=('libwfd')
14 _gitroot="git://people.freedesktop.org/~bnf/owfdrm"
15 _gitname="owfdrm"
17 build() {
18         msg "Connecting to the GIT server...."
20         if [ -d $_gitname ] ; then
21                 cd $_gitname
22                 git pull origin
23                 cd ..
24         else
25                 git clone $_gitroot $_gitname --depth=1
26         fi
28         msg "Creating build directory..."
29         rm -rf $_gitname-build
30         cp -rH $_gitname $_gitname-build
32         msg "Starting build..."
33         cd $_gitname-build
35         ./autogen.sh --prefix=/usr
37         make
40 package() {
41         cd $_gitname-build
42         make DESTDIR="${pkgdir}" install