summaryrefslogtreecommitdiff
path: root/pcr/ibus-bogo/PKGBUILD
blob: 44652b2046c0470c5aa4e42d314a994b45938230 (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
# Contributor: Nguyen Ha Duong <cmpitg@gmail.com>
# Contributor: Ngo Trung <ndtrung4419@gmail.com>
# Contributor: Dam Tien Long <longdt90@gmail.com>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>

pkgname="ibus-bogo"
pkgver=0.1.0 
pkgrel=1
pkgdesc=" Bogo Engine for Ibus"

arch=('i686' 'x86_64')
url="https://github.com/BoGoEngine"
license=('GPLv3')
depends=('ibus' 'python2' 'glibmm' 'python2-gobject')
makedepends=('git' 'cmake' 'gcc' 'python2')
provides=('ibus-bogo')

_gitpython="https://github.com/BoGoEngine/ibus-bogo-python.git"
_gitpythonname="ibus-bogo-python"

install=install

build()  {
	cd ${srcdir}
	
	if [ -d ${_gitpythonname} ] ; then
		cd ${srcdir}/${_gitpythonname} && git pull 
		msg "Local ${srcdir}/${_gitpythonname} updated" 
		
	else 
		git clone ${_gitpython} ${_gitpythonname}
		
	fi
	
	
	
	msg "Starting make..."

	mkdir ${pkgdir}/usr/
	

	# Building ibus-bogo-python
	cd ${srcdir}/${_gitpythonname}
	if [ -d build ]; then
	cd build 
        else 
		mkdir build
		cd build
	fi
	cmake -DCMAKE_INSTALL_PREFIX:PATH="${pkgdir}/usr" ..
	make
	make install
	rm ${pkgdir}/usr/share/glib-2.0/schemas/gschemas.compiled
	
	}