0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-30 01:52:47 +00:00
Files
Maxython 2f4ec00609 chore(x11/xorg-mkfontscale): enable postinst for pacman
It is necessary that the fontdir setting be done even if the aplm-hook was not triggered
2025-04-28 23:39:06 +03:00

25 lines
921 B
Bash

TERMUX_PKG_HOMEPAGE=https://xorg.freedesktop.org/
TERMUX_PKG_DESCRIPTION="Create an index of scalable font files for X"
TERMUX_PKG_LICENSE="MIT, HPND"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.2.3"
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://xorg.freedesktop.org/archive/individual/app/mkfontscale-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=2921cdc344f1acee04bcd6ea1e29565c1308263006e134a9ee38cf9c9d6fe75e
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="findutils, freetype, libfontenc, zlib"
TERMUX_PKG_BUILD_DEPENDS="xorg-util-macros, xorgproto"
TERMUX_PKG_CONFLICTS="xorg-mkfontdir"
TERMUX_PKG_REPLACES="xorg-mkfontdir"
termux_step_create_debscripts() {
for i in postinst postrm triggers; do
cp "${TERMUX_PKG_BUILDER_DIR}/${i}" ./${i}
sed -i "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|g" ./${i}
done
unset i
if [[ "$TERMUX_PACKAGE_FORMAT" == "pacman" ]]; then
echo "post_install" > postupg
fi
}