blob: ade7782b3a34e634e2f97f9b9c00a75f4eed3c9b (
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
|
# Maintainer: riey <creeper844@gmail.com>
pkgname=kime-git
pkgver=0.9.1.r30.aa351a2
pkgrel=1
pkgdesc="Korean IME"
url="https://github.com/Riey/kime"
conflicts=('kime')
provides=('kime')
depends=('gtk3' 'libappindicator-gtk3')
makedepends=('cargo' 'cmake' 'ninja' 'cairo' 'libxcb' 'pango' 'gtk2' 'gtk3' 'gtk4' 'qt5-base' 'qt6-base')
arch=('any')
license=('GPL3')
source=("${pkgname}::git+${url}")
sha512sums=('SKIP')
pkgver() {
cd "${pkgname}"
local tag=$(git tag --sort=v:refname | grep '^v[0-9]\+.[0-9]\+.[0-9]\+$' | tail -1)
local commits_since=$(git rev-list $tag..HEAD --count)
echo "$(echo $tag | cut -b2-).r$commits_since.$(git log --pretty=format:'%h' -n 1)"
}
build() {
cd "${pkgname}"
cargo xtask build --mode Release XIM WAYLAND GTK2 GTK3 GTK4 QT5 QT6
}
package() {
cd "${pkgname}"
cargo xtask install "${pkgdir}"
}
|