blob: b9dc48616c4e6e20fea23674fefa44373f8ae224 (
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
|
# Maintainer: Kimiblock Moe
pkgname=rime-moe-pinyin
pkgver=4.2
pkgrel=1
pkgdesc="moeOS RIME 全拼方案"
arch=('any')
url="https://github.com/Kimiblock/moeOS-pinyin"
license=('GPL-3.0-or-later')
depends=("rime-pinyin-moegirl" "rime-pinyin-zhwiki")
provides=('rime-moe-pinyin')
source=(
pinyin::"git+https://github.com/Kimiblock/moeOS-pinyin.git#tag=${pkgver}"
wanxiang-lts-zh-hans.gram::"https://github.com/Kimiblock/moeOS-pinyin/raw/refs/heads/master/rime-data/others/LMDG/wanxiang-lts-zh-hans.gram")
sha256sums=("SKIP" 'SKIP')
makedepends=("git" "git-lfs")
function prepare() {
cd pinyin
git submodule update --init --depth 1 --remote
}
function package() {
cd pinyin
mkdir -p "${pkgdir}/usr/share"
cp "${srcdir}/pinyin/rime-data" -r "${pkgdir}/usr/share"
install -Dm644 "${srcdir}/pinyin/default.yaml" "${pkgdir}/usr/share/moeOS-Docs/ibus-rime.conf.d/default.yaml"
for dir in $(ls "${pkgdir}/usr/share/rime-data/others"); do
rm -rf "${pkgdir}/usr/share/rime-data/others/${dir}/.git"
done
install -Dm644 "${srcdir}/wanxiang-lts-zh-hans.gram" "${pkgdir}/usr/share/rime-data/others/LMDG/wanxiang-lts-zh-hans.gram"
chmod -R 755 "${pkgdir}/usr/share/rime-data"
}
|