summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 952972f7c3388177a3359e384ca5d78d4fb32725 (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
# Maintainer: Paul Yang <yangwenbo99@gmail.com>

pkgname=g3kb-switch-git
_pkgname=g3kb-switch
pkgver=20200108
pkgrel=1
pkgdesc='a keyboard layout switcher for Gnome 3'
arch=('x86_64')
url='https://github.com/lyokha/g3kb-switch'
license=('Unknown')
depends=('clang' 'glib2' 'glibc')
makedepends=("cmake" "git")
# source=('git+https://github.com/MaskRay/ccls.git')
source=('git+https://github.com/lyokha/g3kb-switch.git')
md5sums=('SKIP')

pkgver() {
  cd $_pkgname
  TZ=UTC date -d @$(git log -1 --format=%ct) +%Y%m%d
}

prepare() {
  cd $_pkgname
  git submodule update --init
}

build() {
  cd $_pkgname
  # cmake -H. -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_COMPILER=clang++ -DCLANG_LINK_CLANG_DYLIB=on -DUSE_SYSTEM_RAPIDJSON=off
  # cmake --build build
  cmake -DCMAKE_BUILD_TYPE=Release
}

package() {
  cd $_pkgname
  make DESTDIR="$pkgdir" install
}