gentoo-zh/app-dicts/fcitx-pinyin-moegirl/fcitx-pinyin-moegirl-20230714.ebuild
2024-08-16 16:47:48 +08:00

24 lines
572 B
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Fcitx 5 Pinyin Dictionary from zh.moegirl.org.cn"
HOMEPAGE="https://github.com/outloudvi/mw2fcitx"
SRC_URI="https://github.com/outloudvi/mw2fcitx/releases/download/${PV}/moegirl.dict -> ${P}.dict"
LICENSE="Unlicense"
SLOT="5"
KEYWORDS="~amd64 ~mips ~x86"
RDEPEND="app-i18n/fcitx:5"
S="${DISTDIR}"
src_install(){
DICT_PATH="/usr/share/fcitx5/pinyin/dictionaries"
insinto ${DICT_PATH}
doins ${P}.dict
fperms 0644 "${DICT_PATH}/${P}.dict"
}