blob: a2bd6c5503e60dafa25eb17461f5019be509388f (
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
|
pkgname=rime-sbxlm-sbkm
pkgver=221030
pkgrel=1
pkgdesc='声笔系列码,声笔快码'
arch=(any)
source=(fetch-release.sh)
sha256sums=('25753b1ae73ed951b43d0db122dd929b070df7ad38418314dc6a5956bef084fc')
makedepends=('unzip' 'jq')
depends=('rime-sbxlm')
groups=(sbxlm)
prepare() {
cd $srcdir
curl -L $(./fetch-release.sh "快码") -o assets.zip
unzip -uo assets.zip -d ./assets
cd ./assets
sed -i 's/import_preset: symbols/import_preset: sbxlm-symbols/g' *.schema.yaml
}
package() {
mkdir -p $pkgdir/usr/share/sbxlm/init-userdb
cd $srcdir/assets
tar czf $pkgdir/usr/share/sbxlm/init-userdb/$pkgname.tar.gz *.userdb
cp -r $srcdir/assets $pkgdir/usr/share/rime-data/
rm -rf $pkgdir/usr/share/rime-data/{*.userdb,$pkgver.zip}
chmod 755 $pkgdir/usr/share/rime-data/
}
|