archrelease: copy trunk to community-any
[ArchLinux/community.git] / ukui-session-manager / trunk / PKGBUILD
blobb1a8929beb9a9128f6c0ae645b64e75bce443dcd
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ukui-session-manager
4 pkgver=3.0.5
5 pkgrel=1
6 pkgdesc="Session manager of the UKUI desktop environment"
7 arch=('x86_64')
8 license=('GPL')
9 url="https://github.com/ukui/ukui-session-manager"
10 groups=('ukui')
11 depends=('kidletime' 'peony' 'qt5-multimedia' 'qt5-ukui-platformtheme' 'ukui-biometric-auth'
12          'ukui-panel' 'ukui-settings-daemon' 'ukui-screensaver' 'ukwm' 'xtrans')
13 makedepends=('cmake' 'ninja' 'qt5-tools')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/ukui/ukui-session-manager/archive/v$pkgver.tar.gz")
15 sha512sums=('9a14d9b16d3bc470a5b6f64720155abcbcc8bc4581b4f8b3df508166d9059cac6c664accfa3609ea5913a6683fe3624b81cb9143738a09895f4de5c41a429c94')
17 prepare() {
18   mkdir -p build
19   sed -i '/#include <QString>/i #include <QFile>' $pkgname-$pkgver/tools/main.cpp
22 build() {
23   cd build
24   cmake ../$pkgname-$pkgver \
25     -GNinja -DCMAKE_INSTALL_PREFIX=/usr
26   ninja
29 package() {
30   cd build
31   DESTDIR="$pkgdir" ninja install