blob: 9f6b7e26a300e9a21bce08c1edcb0549cc117ec9 (
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
|
# Maintainer: Nanaka Hiira <hiira plus archlinux at hiira dot dev>
pkgname=fcitx5-hazkey
pkgver=0.2.0
pkgrel=4
pkgdesc="Japanese input method for fcitx5, powered by azooKey engine"
arch=('x86_64')
url="https://hazkey.hiira.dev/"
license=('MIT')
depends=('fcitx5>=5.0.4' 'qt6-base' 'libprotobuf-lite.so')
optdepends=('hazkey-zenzai: Zenzai neural conversion support')
makedepends=('cmake' 'ninja' 'swift-language')
provides=('hazkey-server=0.2.0' 'hazkey-settings=0.2.0')
conflicts=('hazkey-server' 'hazkey-settings')
_dictionaryversion=3.0.1
_emojidictionaaryversion=08f82252fb90ef8f0949a7e3c554e9e1787ce121
source=("https://github.com/7ka-Hiira/fcitx5-hazkey/archive/refs/tags/0.2.0.tar.gz"
"azooKey_dictionary_storage-v$_dictionaryversion.tar.gz::https://codeload.github.com/azooKey/azooKey_dictionary_storage/zip/refs/tags/v$_dictionaryversion"
"azooKey_emoji_dictionary_storage-$_emojidictionaaryversion::https://codeload.github.com/azooKey/azooKey_emoji_dictionary_storage/zip/$_emojidictionaaryversion")
sha256sums=('56efd8c417cf4356fa582c9840e8ec3fa072e3684caf10eb063afc0cbcf866cf'
'9b941ef555ec95d6a6ff914e330e7598eb2fbf9a4f83e9acc58b422f8a35bfc1'
'266620b56f8a0ebe674e41475c9cfd0a02da9f75bda942f3041da128dde8e97d')
build() {
cd "$pkgname-$pkgver"
cp -r ../azooKey_dictionary_storage-$_dictionaryversion/Dictionary ./hazkey-server/azooKey_dictionary_storage/
cp -r ../azooKey_emoji_dictionary_storage-$_emojidictionaaryversion/EmojiDictionary ./hazkey-server/azooKey_emoji_dictionary_storage/
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..
ninja
}
package() {
cd "$pkgname-$pkgver/build"
DESTDIR="$pkgdir" ninja install
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|