summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7f55ffce15dd44db6106af085b521af5d73a6b8 (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
46
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=chewing-editor-git
pkgver=0.1.1.r46.g11841ff
pkgrel=2
pkgdesc="Cross platform chewing user phrase editor"
arch=('i686' 'x86_64')
url="https://chewing.im/"
license=('GPL')
depends=('glibc' 'hicolor-icon-theme' 'libchewing' 'qt5-base')
makedepends=('git' 'cmake' 'help2man' 'qt5-tools')
checkdepends=('valgrind')
provides=("chewing-editor=$pkgver")
conflicts=('chewing-editor')
source=("git+https://github.com/chewing/chewing-editor.git")
sha256sums=('SKIP')


pkgver() {
  cd "chewing-editor"

  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "chewing-editor"

  cmake \
    -B "_build" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX="/usr" \
    ./
  make -C "_build"
}

check() {
  cd "chewing-editor"

  make -C "_build" test
}

package() {
  cd "chewing-editor"

  make -C "_build" DESTDIR="$pkgdir" install
}