updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / weston-git / PKGBUILD
blobf46742f35ec266116cc8f894fd9d36896db8d2cd
1 pkgname=weston-git
2 pkgver=20120104
3 pkgrel=3
4 pkgdesc="A modern display server."
5 arch=(i686 x86_64)
6 url="http://wayland.freedesktop.org"
7 license=('LGPLv2')
8 depends=('libxkbcommon-git' 'wayland-git' 'mesa-full-wayland' 'cairo-gl-git' 'poppler-glib')
9 options=(!makeflags)
11 _gitroot="git://anongit.freedesktop.org/wayland/weston"
12 _gitname="weston"
14 build() {
15         msg "Connecting to git.freedesktop.org GIT server...."
17         if [ -d "$srcdir/$_gitname" ] ; then
18                 cd $_gitname && git pull origin
19                 msg "The local files are updated."
20         else
21                 git clone $_gitroot
22         fi
24         msg "GIT checkout done or server timeout"
25         msg "Starting make..."
27         rm -rf "${srcdir}/$_gitname-build"
28         cp -r "${srcdir}/$_gitname" "${srcdir}/$_gitname-build"
29         cd "${srcdir}/$_gitname-build"
31         ./autogen.sh --prefix=/usr
32         make
35 package() {
36         cd ${srcdir}/$_gitname-build
37         make DESTDIR="${pkgdir}" install
38         install -m 755 -D src/weston "${pkgdir}/usr/bin/weston"
39         install -m 755 -D clients/dnd "${pkgdir}/usr/bin/weston-dnd"
40         install -m 755 -D clients/eventdemo "${pkgdir}/usr/bin/weston-eventdemo"
41         install -m 755 -D clients/flower "${pkgdir}/usr/bin/weston-flower"
42         install -m 755 -D clients/gears "${pkgdir}/usr/bin/weston-gears"
43         install -m 755 -D clients/image "${pkgdir}/usr/bin/weston-image"
44         install -m 755 -D clients/resizor "${pkgdir}/usr/bin/weston-resizor"
45         install -m 755 -D clients/screenshot "${pkgdir}/usr/bin/weston-screnshot"
46         install -m 755 -D clients/simple-egl "${pkgdir}/usr/bin/weston-simple-egl"
47         install -m 755 -D clients/simple-shm "${pkgdir}/usr/bin/weston-simple-shm"
48         install -m 755 -D clients/simple-touch "${pkgdir}/usr/bin/weston-simple-touch"
49         install -m 755 -D clients/smoke "${pkgdir}/usr/bin/weston-smoke"
50         install -m 755 -D clients/terminal "${pkgdir}/usr/bin/weston-terminal"
51         install -m 755 -D clients/view "${pkgdir}/usr/bin/weston-view"
52         install -m 755 -D clients/weston-desktop-shell "${pkgdir}/usr/bin/weston-desktop-shell"
53         install -m 755 -D clients/weston-tablet-shell "${pkgdir}/usr/bin/weston-tablet-shell"
54         install -m 755 -D clients/wscreensaver "${pkgdir}/usr/bin/weston-wscreensaver"