# Maintainer: Ivan Semkin (ivan at semkin dot ru) # Contributor: kikadf pkgname=mir-git _pkgname=mir pkgver=1.5.0+146+gd42981b4a6 pkgrel=2 pkgdesc="Canonical's display server" url='https://mir-server.io' arch=(x86_64 i686 armv7h aarch64) license=(GPL LGPL) conflicts=(mir) provides=(mir) depends=(gtest boost-libs capnproto google-glog gflags libglvnd liburcu lttng-ust libepoxy libxml++2.6 nettle libinput libxkbcommon python-pillow freetype2 libevdev protobuf python-dbus python-gobject hicolor-icon-theme libxcursor yaml-cpp) makedepends=(git glm doxygen cmake boost gcovr gmock lcov valgrind python-dbusmock umockdev wlcs) optdepends=('qterminal: required for miral demos' 'ttf-ubuntu-font-family: required for miral demos' 'qt5-wayland: required for miral demos' 'xcursor-dmz: opt requirement for miral demos' 'qtubuntu: opt requirement for miral demos') source=('git+https://github.com/MirServer/mir.git') sha256sums=('SKIP') BUILD_DIR=build prepare() { cd ${_pkgname} git submodule init git submodule update } pkgver() { cd ${_pkgname} git describe --tags | sed 's/-/+/g' | cut -d "v" -f 2 } build() { cd ${_pkgname} mkdir -p ${BUILD_DIR} cd ${BUILD_DIR} cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR="lib/" .. cmake --build ./ } check() { cd ${_pkgname}/${BUILD_DIR} GTEST_OUTPUT=xml:./ make ptest } package() { cd ${_pkgname}/${BUILD_DIR} make DESTDIR="${pkgdir}/" install } # vim:set ts=2 sw=2 et: