blob: abcb2f98fae3741ccec3131016cd028f17655243 (
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
|
# Contributor: Myt1 <MYT1 @ QQ.com>
pkgname=fcitx5-pinyin-sougou-dict-git
_pkgname=sougouscel
pkgver=20241227.r1.g0f03ce8
pkgrel=1
pkgdesc="Fcitx5-pinyin搜狗官网词库全部词量"
arch=('any')
url="https://pinyin.sogou.com/dict/"
license=('custom')
makedepends=('libime' 'git')
source=(git+https://github.com/maoyaotang12/sougouscel.git)
sha512sums=('SKIP')
pkgver() {
cd ${_pkgname}
git describe --long --tags --abbrev=7 | sed 's/^v//;s/-/.r/;s/-/./'
}
prepare(){
cd ${_pkgname}/scel
chmod +x txt.sh
./txt.sh
rm -r txt.sh
}
build() {
cat ${_pkgname}/scel/*.txt > sougouciku.txt
libime_pinyindict sougouciku.txt sougouciku.dict
}
package() {
install -Dm644 sougouciku.dict -t $pkgdir/usr/share/fcitx5/pinyin/dictionaries/
}
|