summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca344e1714e231c2d2c0ce3ffeffd7a092eba6e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Jiachen Yang <farseerfc@archlinux.org>
# Co-Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: poplarch <poplarch@gmail.com>

_pkgname=fcitx5-configtool
pkgname=$_pkgname-git
pkgver=5.1.2.r1.g3f7dca9
pkgrel=1
pkgdesc="Config tools for Fcitx5, nightly build from git"
arch=('i686' 'x86_64')
url="https://github.com/fcitx/fcitx5-configtool"
license=('GPL')
depends=('fcitx5-qt5-git' 'kwidgetsaddons5' 'kitemviews5' 'qt5-x11extras')
makedepends=('extra-cmake-modules' 'python' 'git' 'kirigami2' 'kdeclarative5' 'ninja' 'plasma-framework5')
conflicts=("$_pkgname" "fcitx5-config-qt" "kbd-layout-viewer5")
provides=("$_pkgname" "fcitx5-config-qt" "kbd-layout-viewer5")
optdepends=("kdeclarative5: for KCM support"
            "plasma-framework5: for plasma theme generator"
            "kirigami2: for KCM support")
replaces=("kcm-fcitx5-git" "kbd-layout-viewer5-git<=r332.734741d-2" "fcitx5-config-qt-git<=r332.734741d-2")
source=("git+$url.git")
sha512sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  mkdir build
  cd build

  cmake -GNinja ../$_pkgname \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
  ninja
}

package() {
  cd build
  DESTDIR="$pkgdir" ninja install
}