summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea09a26f2b37ee888eafb33c4a2cc14db20d90e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: asukaminato <asukaminato at nyan dot eu dot org>
# Contributor: Haonan Chen <g897331845@gmail.com>

pkgname=fcitx5-pinyin-sougou
pkgver=20210320
pkgrel=1
pkgdesc="Fcitx 5 Pinyin Dictionary from https://pinyin.sogou.com/dict/"
arch=('any')
url="https://github.com/CHN-beta/sougou-dict.git"
license=('custom')
makedepends=('libime' 'git')
_commit="c33638423355e557febfd7922b392a394c0ddefc"
source=(git+https://github.com/CHN-beta/sougou-dict.git#commit=$_commit)
sha512sums=('SKIP')

build() {
	cat sougou-dict/dict/*.txt >sougou.txt
	libime_pinyindict sougou.txt sougou.dict
}

package() {
	install -Dm644 sougou.dict -t $pkgdir/usr/share/fcitx5/pinyin/dictionaries/
}