blob: f49e5e6e97dfb8ec8a5bf649cb369ac12c7a4d62 (
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
|
# Contributor: Joel Teichroeb <joel@teichroeb.net>
# Contributor: Sébastien Luttringer
# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
pkgname=weston-rift-git
pkgver=1.8.90.4701.6e605c5
pkgrel=1
pkgdesc='Reference implementation of a Wayland compositor with Oculus Rift support'
arch=(i686 x86_64)
url='https://github.com/Nealefelaen/weston-rift'
license=('MIT')
makedepends=('git')
depends=('libxkbcommon' 'wayland' 'mesa' 'poppler-glib' 'mtdev' 'libva' 'libinput>=0.4'
'libxcursor' 'glu' 'cairo' 'pixman' 'libunwind' 'pango' 'colord' 'libwebp' 'oculus-rift-sdk-jherico-git')
conflicts=('weston' 'weston-git')
provides=('weston')
source=('weston::git+https://github.com/ChristophHaag/weston-rift.git')
sha1sums=('SKIP')
prepare() {
cd weston
}
pkgver() {
cd weston
for i in major_version minor_version micro_version; do
local _$i=$(grep -m 1 $i configure.ac | sed 's/m4//' | grep -o "[[:digit:]]*")
done
echo $_major_version.$_minor_version.$_micro_version.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd weston
./autogen.sh --prefix=/usr \
--libexecdir=/usr/lib/weston \
--enable-demo-clients-install \
--with-cairo=gl \
--enable-libinput-backend
make
}
package() {
cd weston
make DESTDIR="${pkgdir}" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
install -Dm644 "shared/zalloc.h" "$pkgdir/usr/include/weston/zalloc.h"
install -Dm644 "config.h" "$pkgdir/usr/include/weston/config.h"
}
|