summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a3e08465771e304338c38ac369ceb888e7a482b6 (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
56
57
58
59
60
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: push2001sla@gmail.com
# Developer: andrewcrew@rambler.ru

pkgname=xneur-devel-git
pkgver=0.20.0
pkgrel=10
epoch=
pkgdesc="X Neural Switcher detects the input language and corrects keyboard layout. Git version"
arch=('any')
url="https://github.com/AndrewCrewKuznetsov/xneur-devel"
license=('GPL')
groups=()
depends=('xosd' 'enchant' 'gtk2' 'libnotify' 'gstreamer>=1.2.4')
makedepends=('git')
checkdepends=()
optdepends=('hunspell-<your_language>')
provides=('xneur')
conflicts=('xneur')
replaces=('xneur')
backup=()
options=()
install=
changelog=
source=("https://github.com/AndrewCrewKuznetsov/xneur-devel")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

prepare() {
	#rm -rf "$pkgname-$pkgver"
	git clone https://github.com/AndrewCrewKuznetsov/xneur-devel "$pkgname-$pkgver"
}

build() {
	echo 'Possibly will request passwd to make /usr/include/enchant link'
	sudo ln -s /usr/include/enchant-2 /usr/include/enchant || echo "Don't mind..."
	cd "$pkgname-$pkgver/xneur"
	./autogen.sh --prefix=/opt/xneur
	make
}

#check() {
#	cd "$pkgname-$pkgver/xneur"
#	make -k check
#}

package() {
	cd "$pkgname-$pkgver/xneur"
	make DESTDIR="$pkgdir/" install
	mkdir -p "$pkgdir/usr/bin"
	echo -e "#!/bin/bash\n/opt/xneur/bin/xneur $@" > "$pkgdir/usr/bin/xneur"
	chmod +x "$pkgdir/usr/bin/xneur"
	libtool --finish /opt/xneur/lib/xneur
	
}