archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / deepin-launcher / trunk / PKGBUILD
blobcd411552d72999c73ded8d750924b103ff54e8e5
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
3 # Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
5 pkgname=deepin-launcher
6 pkgver=5.6.1
7 _commit=d0109891448d863e19af7b11ced427a11411d28e
8 pkgrel=2
9 pkgdesc='Deepin desktop-environment - Launcher module'
10 arch=('x86_64')
11 url="https://github.com/linuxdeepin/dde-launcher"
12 license=('GPL3')
13 depends=('gsettings-qt' 'qt5-svg' 'qt5-x11extras' 'startdde' 'deepin-qt5integration' 'deepin-menu'
14          'deepin-daemon' 'deepin-qt-dbus-factory' 'xdg-user-dirs')
15 makedepends=('git' 'cmake' 'gmock' 'gtest' 'ninja' 'qt5-tools')
16 conflicts=('dde-launcher')
17 replaces=('dde-launcher')
18 groups=('deepin')
19 source=("git+https://github.com/linuxdeepin/dde-launcher.git#commit=$_commit")
20 sha512sums=('SKIP')
22 prepare() {
23   cd dde-launcher
25   # workaround slow window mode loading
26   git cherry-pick -n 0612c1181f232eb1c7be05a40c9c951a51cd0f2a
28   # fix namespace of dregionmonitor
29   git cherry-pick -n 037fe068f42e379b0b7fd70bffdde040262ecd2d
31   sed -i 's|/usr/share/backgrounds/default_background.jpg|/usr/share/backgrounds/deepin/desktop.jpg|' src/boxframe/*.cpp
34 build() {
35   cd dde-launcher
36   cmake . -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DWITHOUT_UNINSTALL_APP=
37   ninja
40 check() {
41   cd dde-launcher
42   # ninja test
45 package() {
46   cd dde-launcher
47   DESTDIR="$pkgdir" ninja install