blob: 14852e790438d3b2dfc5b5061738090cd7bf52fd (
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-sbfm
pkgver=220815
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/
}
|