# Contributor: Bart Ribbers # Maintainer: Luca Weiss pkgname=mir pkgver=1.1.2 pkgrel=1 pkgdesc="Canonical's display server" url="https://mir-server.io" arch="x86_64" license="GPL-2.0 GPL-3.0 LGPL-2.1 LGPL-3.0" depends="xkeyboard-config dmz-cursor-theme ttf-freefont" depends_dev="boost-dev mesa-dev glm-dev protobuf-dev glog-dev gflags-dev eudev-dev glib-dev wayland-dev libepoxy-dev nettle-dev libinput-dev capnproto-dev libxml++-2.6-dev py3-pillow freetype-dev libevdev-dev umockdev-dev lttng-ust-dev yaml-cpp-dev libxcursor-dev" makedepends="$depends_dev cmake libxkbcommon-dev gtest-dev gmock clang-dev" source="https://github.com/MirServer/mir/releases/download/v$pkgver/mir-$pkgver.tar.xz" subpackages="$pkgname-dev" options="!check" # Some tests fail build() { cd "$builddir" export CC=clang export CXX=clang++ cmake \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DMIR_USE_LD=ld make } check() { cd "$builddir" bin/mir_acceptance_tests bin/mir_integration_tests bin/mir_unit_tests } package() { cd "$builddir" make DESTDIR="$pkgdir/" install } sha512sums="4431615d795b93239a83a197d61a5900f094a2108933be4e4da09220bd20e2b031e5232174805216a964279fcf8786672d5c40c3be83856d1903f128b7b814b7 mir-1.1.2.tar.xz"