summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1468adab46b46a02a787e9dd54a7048d1c346fa3 (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
61
62
63
64
65
66
67
68
69
70
71
72
# Maintainer: 7k5x <7k5xlp0onfire@gmail.com>
# Contributor: Whemoon Jang <palindrom615@gmail.com>
# Contributor: Hodong Kim <nimfsoft@gmail.com>
# Contributor: Youngbin Han <sukso96100@gmail.com>
# Contributor: Changjoo Lee <icj7061@gmail.com>
# Contributor: ywen407 <ywen407@naver.com>

#The current git revision of nimf on GitHub uses a new function of libhangul that's not implemented in the current *release* version of it. Thus, we have to install libhangul-git. Install it from the AUR.
pkgname=nimf-git
pkgver=1.3.0.r9.799dfcd
pkgrel=1
pkgdesc="Nimf is a lightweight, fast and extensible input method framework."
arch=('any')
url="https://github.com/hamonikr/nimf"
license=('LGPL3')
depends=(
         'glibc'
         'gtk3'
         'glib2'
         'libhangul-git'
         'libappindicator-gtk3'
         'libxkbcommon>=0.5.0'
         'libxklavier'
         'qt5-base'
         'wayland')
makedepends=(
    'git'
	'gcc'
	'intltool'
	'gtk-doc'
	'gtk2'
	'gtk-update-icon-cache'
	'librsvg'
	'libx11'
	'wayland-protocols'
)
conflicts=("nimf")
provides=("nimf")
source=( "nimf::git+${url}.git" )
md5sums=('SKIP' )

pkgver() {
	cd "$srcdir/nimf"
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

post_install() {
	echo "Compiling schemas..."
	/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/
	echo "Running ldconfig..."
	ldconfig
	echo "Updating GTK icon cache..."
	gtk-update-icon-cache
	echo "Updating immodules cache..."
	gtk-query-immodules-3.0 --update-cache
	gtk-query-immodules-2.0 --update-cache
}

post_upgrade() {
	post_install $1
}
build() {
	cd "$srcdir/nimf"
	./autogen.sh --prefix=/usr
	make
}

package() {
    rm -rf $srcdir/../nimf
	cd "$srcdir/nimf"
	make DESTDIR="${pkgdir}/" install
}