summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 46e4a390933915c39e97bc06f1de3a8c8b091b00 (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
47
48
49
50
51
52
53
54
55
# Maintainer: tailinchu <use_my_id at gmail dot com>

pkgname=fcitx-minimal-git
pkgver=4.2.9
pkgrel=1
pkgdesc="Flexible Context-aware Input Tool with eXtension with a minimal set of dependencies (git version)"
arch=('i686' 'x86_64')
url="http://github.com/fcitx/fcitx"
license=('GPL')

makedepends=('git' 'intltool' 'cmake' 'extra-cmake-modules' 'iso-codes')
conflicts=('fcitx')
provides=("fcitx=$pkgver")

depends=('pango' 'libxinerama' 'gtk-update-icon-cache' 'shared-mime-info' \
    'hicolor-icon-theme' 'desktop-file-utils' 'libxkbfile' \
    'libxfixes' 'dbus' 'libxkbcommon')

install=fcitx.install

source=("git://github.com/fcitx/fcitx.git")
md5sums=('SKIP')

_gitroot="fcitx"

pkgver() {
    cd "$srcdir/$_gitroot"
    git describe --always | sed 's|-|.|g'
}

build() {
    mkdir -p "$srcdir/$_gitroot/build"
    msg "Starting make..."
    cd "$srcdir/$_gitroot/build"
    cmake ".." \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE=Release \
        -DENABLE_OPENCC=OFF \
				-DENABLE_PINYIN=OFF \
        -DENABLE_TABLE=OFF \
        -DENABLE_ENCHANT=OFF \
				-DENABLE_PRESAGE=OFF \
				-DENABLE_QT=OFF \
				-DENABLE_QT_IM_MODULE=OFF \
        -DENABLE_SNOOPER=OFF \
        -DENABLE_GIR=OFF \
        -DENABLE_ENCHANT=OFF
    make
}

package() {
    cd "$srcdir/$_gitroot/build"
    make PREFIX=/usr DESTDIR="$pkgdir" install
}