summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f9dfa249ca3cb4560be1730674b5272cfc547bbf (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
# Maintainer: Byeonghoon Isac Yoo <bh322yoo at gmail dot com>

_pkgname=nimf
pkgname=nimf-libhangul-git
pkgver=1.3.0.r21.e022c81
pkgrel=1
pkgdesc="Nimf is a lightweight, fast and extensible input method framework. (libhangul only)"
arch=('any')
url="https://github.com/hamonikr/nimf"
license=('LGPL3')
depends=(
	'glib2'
	'libxklavier'
	'libhangul-git'
	'libxkbcommon>=0.5.0'
	'libayatana-appindicator'
)
makedepends=(
	'git'
	'gcc'
	'intltool'
	'gtk-doc'
	'gtk2'
	'gtk3'
	'gtk-update-icon-cache'
	'librsvg'
	'libx11'
	'wayland-protocols'
	'wayland'
	'qt5-base'
)
source=( "${_pkgname}::git+${url}.git" )
md5sums=('SKIP' )

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


build() {
	cd "$srcdir/${_pkgname}"
	./autogen.sh --prefix=/usr --disable-nimf-anthy --disable-nimf-m17n --disable-nimf-rime
	make
}

package() {
	cd "$srcdir/${_pkgname}"
	make DESTDIR="${pkgdir}/" install
}