blob: 64108a0146f50c044926adbd95ea343d9052864c (
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-sbzr
pkgver=221030
pkgrel=1
pkgdesc='声笔系列码,声笔自然'
arch=(any)
source=('fetch-release.sh')
sha256sums=('25753b1ae73ed951b43d0db122dd929b070df7ad38418314dc6a5956bef084fc')
makedepends=('jq' 'unzip')
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/
}
|