2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://xorg.freedesktop.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="X.org font encoding files"
|
2019-01-21 17:50:21 +01:00
|
|
|
TERMUX_PKG_LICENSE="Public Domain"
|
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_VERSION=1.0.4
|
2018-09-22 12:48:19 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://xorg.freedesktop.org/releases/individual/font/encodings-${TERMUX_PKG_VERSION}.tar.bz2
|
|
|
|
TERMUX_PKG_SHA256=ced6312988a45d23812c2ac708b4595f63fd7a49c4dcd9f66bdcd50d1057d539
|
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
2019-01-21 17:50:21 +01:00
|
|
|
## 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() {
|
2019-01-21 17:50:21 +01:00
|
|
|
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
|
|
|
|
2019-01-21 17:50:21 +01: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
|
|
|
}
|