summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 57001353351e504e23227d6c862e978e692c0ad8 (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
# Maintainer: Songun Lee <leesongun@naver.com>

pkgname=wlhangul-git
_pkgname=wlhangul
pkgver=r6.9fbe8d7
pkgrel=1
pkgdesc="A Hangul input method for Wayland."
arch=('x86_64' 'i686')
url="https://github.com/emersion/wlhangul"
license=('MIT')
depends=('libhangul' 'wayland' 'libxkbcommon')
makedepends=('meson' 'git')
provides=('wlhangul')
source=('git+https://github.com/emersion/wlhangul.git')
sha256sums=('SKIP')
build() {
	cd "$srcdir"/"$_pkgname"
	meson build/
	ninja -C build/
}

pkgver() {
	cd "${_pkgname}"
 	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir"/"$_pkgname"
	mkdir -p "$pkgdir"/usr/{bin,share,}
	install -Dm755 "build/$_pkgname" "$pkgdir"/usr/bin
	install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}