blob: 4963a7b853b33961e0d6adcde5cce4e818a87485 (
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
|
# Maintainer: riey <creeper844@gmail.com>
pkgname=kime-git
pkgver=0.5.0.209.g95afb0d
pkgrel=2
pkgdesc="Korean IME"
url="https://github.com/Riey/kime"
conflicts=('kime')
provides=('kime')
depends=('gtk3' 'cairo' 'libxcb' 'pango')
makedepends=('cargo')
arch=('any')
license=('GPL3')
source=("${pkgname}::git+${url}")
sha512sums=('SKIP')
pkgver() {
cd "${pkgname}"
echo $(grep '^version =' gtk3/Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git describe --always)
}
build() {
cd "${pkgname}"
cargo build --release
pkg/release-7z.sh
7z x -obuild/out build/7z/kime.7z
}
package() {
cd "${pkgname}/build/out"
install -Dm755 kime-xim -t "${pkgdir}/usr/bin"
install -Dm755 im-kime.so -t "${pkgdir}/usr/lib/gtk-3.0/3.0.0/immodules"
install -Dm755 libkime_engine.so -t "${pkgdir}/usr/lib"
install -Dm644 kime_engine.h -t "${pkgdir}/usr/include/kime"
install -Dm644 config.yaml -t "${pkgdir}/etc/kime"
}
|