diff options
author | Christoph Haag | 2015-06-16 16:53:00 +0200 |
---|---|---|
committer | Christoph Haag | 2015-06-16 16:53:00 +0200 |
commit | 7cf5afd239d67e577a7dfe6ca3462ee1e7d16fa7 (patch) | |
tree | 15e22107ae011c0b332acc6f45a4a47001cf7f1f | |
download | aur-weston-rift-git.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 33 | ||||
-rw-r--r-- | PKGBUILD | 54 |
2 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bf9cd42053ae --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,33 @@ +pkgbase = weston-rift-git + pkgdesc = Reference implementation of a Wayland compositor with Oculus Rift support + pkgver = 1.8.90.4701.6e605c5 + pkgrel = 1 + url = https://github.com/Nealefelaen/weston-rift + arch = i686 + arch = x86_64 + license = MIT + makedepends = git + depends = libxkbcommon + depends = wayland + depends = mesa + depends = poppler-glib + depends = mtdev + depends = libva + depends = libinput>=0.4 + depends = libxcursor + depends = glu + depends = cairo + depends = pixman + depends = libunwind + depends = pango + depends = colord + depends = libwebp + depends = oculus-rift-sdk-jherico-git + provides = weston + conflicts = weston + conflicts = weston-git + source = weston::git+https://github.com/ChristophHaag/weston-rift.git + sha1sums = SKIP + +pkgname = weston-rift-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f49e5e6e97df --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} + |