# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit font

DESCRIPTION="LXGW ZhenKai, a bold Kai font derived from LXGW WenKai (Slab GB edition)"
HOMEPAGE="https://github.com/lxgw/LxgwZhenKai"
SRC_URI="https://github.com/lxgw/LxgwZhenKai/releases/download/v${PV}/LXGWZhenKaiSlabGB-Regular.ttf -> ${P}.ttf"
S="${WORKDIR}"

LICENSE="OFL-1.1"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86"

FONT_SUFFIX="ttf"

src_unpack() {
	cp "${DISTDIR}/${P}.ttf" "${S}" || die
}