1 # Contributor: taylorchu <taylorchu@gmail.com>
2 pkgname=fcitx-chewing-git
5 pkgdesc="Fcitx Wrapper for libchewing"
7 url="https://github.com/fcitx/fcitx-chewing"
9 depends=('fcitx-git' 'libchewing')
10 makedepends=('git' 'cmake' 'intltool' 'libchewing')
11 provides=('fcitx-chewing')
12 conflicts=('fcitx-chewing')
16 _gitroot=https://github.com/fcitx/fcitx-chewing
17 _gitname=fcitx-chewing
21 msg "Connecting to the GIT server...."
23 if [[ -d $srcdir/$_gitname ]] ; then
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
33 msg "Starting make..."
35 rm -rf "$srcdir/$_gitname-build"
36 cp -rf "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37 cd "$srcdir/$_gitname-build"
39 cmake -DCMAKE_INSTALL_PREFIX=/usr .
40 make DESTDIR=${pkgdir} install