blob: 50cea042c6d6398543bdefa730e230a579e6d975 (
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: mojyack <mojyack at gmail.com>
pkgname=fcitx5-mikan-git
pkgver=1.6.4_r277d102
pkgrel=2
pkgdesc='mikan input method for fcitx5'
arch=('x86_64')
url='https://github.com/mojyack/mikan'
license=('MIT')
depends=('mikan-dictionary' 'fcitx5' 'mecab')
makedepends=('meson' 'ninja')
optdepends=('mikan-additional-dictionary: increases vocabulary')
conflicts=('fcitx5-mikan')
source=("source::git+https://github.com/mojyack/mikan")
md5sums=('SKIP')
pkgver() {
cd source
printf "%s_r%s" "$(grep -ozP "(?s)^project\('fcitx5-mikan'.*?version : *'\K[\d.]*" meson.build | tr '\0' '\n')" "$(git rev-parse --short HEAD)"
}
build() {
cd source
git submodule update --recursive --init
meson setup release
meson configure -Dprefix=/usr -Dlibdir=lib/fcitx5 -Dbuildtype=release release
ninja -C release
}
package() {
cd source
DESTDIR="${pkgdir}" ninja -C release install
}
|