gentoo-ebuilds/media-fonts/khmer/khmer-5.0-r1.ebuild
Sam James 4a8703b308
media-fonts/khmer: Keyword 5.0-r1 arm64, #937303
Signed-off-by: Sam James <sam@gentoo.org>
2024-08-30 18:09:36 +01:00

36 lines
692 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit font
DESCRIPTION="Fonts for the Khmer language of Cambodia"
HOMEPAGE="http://www.khmeros.info/drupal/?q=en/download/fonts"
SRC_URI="https://downloads.sourceforge.net/khmer/All_KhmerOS_${PV}.zip"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~loong ~riscv x86"
BDEPEND="app-arch/unzip"
S="${WORKDIR}/All_KhmerOS_${PV}"
FONT_S="${S}"
FONT_SUFFIX="ttf"
src_prepare() {
default
# bug 338057
mv KhmerOS{\ ,}.ttf || die
}
pkg_postinst() {
font_pkg_postinst
elog "To prefer using Khmer OS fonts, run:"
elog
elog " eselect fontconfig enable 65-khmer.conf"
}