PKGBUILDs/community/weston/PKGBUILD

44 lines
1.3 KiB
Bash
Raw Normal View History

2013-07-16 23:05:56 +00:00
# $Id$
# Maintainer: Sébastien Luttringer
# Contributor: Joel Teichroeb <joel@teichroeb.net>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - export flags for rpi
pkgname=weston
2016-02-18 13:21:35 +00:00
pkgver=1.10.0
2015-06-05 00:48:52 +00:00
pkgrel=1
2013-07-16 23:05:56 +00:00
pkgdesc='Reference implementation of a Wayland compositor'
arch=('i686' 'x86_64')
url='http://wayland.freedesktop.org'
license=('MIT')
2016-02-18 13:21:35 +00:00
depends=('wayland' 'libxkbcommon' 'libinput' 'libunwind' 'poppler-glib' 'mtdev' 'libxcursor' 'glu' 'pango' 'colord')
makedepends=('wayland-protocols')
2016-02-18 19:06:48 +00:00
makedepends_armv6h=('raspberrypi-firmware')
2014-05-25 20:24:16 +00:00
source=("http://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz")
2016-02-18 13:21:35 +00:00
sha1sums=('c9c2c8e2e798b25e7bf6b31bf0c4ef08724a7ebb')
2013-07-16 23:05:56 +00:00
build() {
cd $pkgname-$pkgver
if [ "$CARCH" == 'armv6h' ]; then
export RPI_BCM_HOST_LIBS="-L/opt/vc/lib"
export RPI_BCM_HOST_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
export WESTON_NATIVE_BACKEND="rpi-backend.so"
2014-04-16 12:51:57 +00:00
export RPI_COMPOSITOR_LIBS="-ludev -lmtdev -lbcm_host"
CONFIG='--disable-egl'
2013-07-16 23:05:56 +00:00
fi
./configure \
--prefix=/usr \
2013-08-23 19:24:08 +00:00
--libexecdir=/usr/lib/weston \
2014-10-16 13:20:31 +00:00
--enable-libinput-backend \
--enable-demo-clients-install $CONFIG
2013-07-16 23:05:56 +00:00
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
# license
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}