termux-packages/x11-packages/xorg-fonts-encodings/build.sh

32 lines
1.2 KiB
Bash
Raw Normal View History

2018-09-10 00:42:26 +02:00
TERMUX_PKG_HOMEPAGE=https://xorg.freedesktop.org/
TERMUX_PKG_DESCRIPTION="X.org font encoding files"
TERMUX_PKG_LICENSE="Public Domain"
2019-05-17 00:18:48 +02:00
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
2019-06-29 20:33:39 +02:00
TERMUX_PKG_VERSION=1.0.5
2020-05-02 14:13:22 +02:00
TERMUX_PKG_REVISION=9
2018-09-10 00:42:26 +02:00
TERMUX_PKG_SRCURL=https://xorg.freedesktop.org/releases/individual/font/encodings-${TERMUX_PKG_VERSION}.tar.bz2
2019-06-29 20:33:39 +02:00
TERMUX_PKG_SHA256=bd96e16143a044b19e87f217cf6a3763a70c561d1076aad6f6d862ec41774a31
2018-09-10 00:42:26 +02:00
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-fontrootdir=$TERMUX_PREFIX/share/fonts"
2018-09-10 00:42:26 +02:00
termux_step_pre_configure() {
## Checking only for mkfontdir which is a part of xfonts-utils that provides
## tool mkfontscale used in further steps.
if [ -z "$(command -v mkfontdir)" ]; then
echo
echo "Command 'mkfontdir' is not found."
echo "Install it by running 'sudo apt install xfonts-utils'."
echo
exit 1
fi
2018-09-10 00:42:26 +02:00
}
termux_step_post_make_install() {
cd "${TERMUX_PREFIX}"/share/fonts/encodings/large
mkfontscale -b -s -l -n -r -p "${TERMUX_PREFIX}"/share/fonts/encodings/large -e . .
2018-09-10 00:42:26 +02:00
cd "${TERMUX_PREFIX}"/share/fonts/encodings/
mkfontscale -b -s -l -n -r -p "${TERMUX_PREFIX}"/share/fonts/encodings -e . -e large .
2018-09-10 00:42:26 +02:00
}