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 /PKGBUILD | |
download | aur-7cf5afd239d67e577a7dfe6ca3462ee1e7d16fa7.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
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" +} + |