distribution/packages/fonts/spleen-font/package.mk

59 lines
1.4 KiB
Makefile
Raw Normal View History

2023-10-17 01:34:51 +00:00
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2020-present Fewtarius
PKG_NAME="spleen-font"
PKG_VERSION="2.0.0"
PKG_LICENSE="BSD-2-Clause"
PKG_SITE="https://github.com/fcambus/spleen"
PKG_URL="${PKG_SITE}/releases/download/${PKG_VERSION}/spleen-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_INIT="toolchain bdf2psf:host"
PKG_DEPENDS_TARGET="toolchain bdf2psf:host"
2023-10-17 01:34:51 +00:00
PKG_LONGDESC="This package contains the Spleen Font"
PKG_TOOLCHAIN="manual"
pre_configure_init() {
cd ${PKG_BUILD}
rm -rf .${TARGET_NAME}-${TARGET}
}
pre_configure_target() {
cd ${PKG_BUILD}
rm -rf .${TARGET_NAME}-${TARGET}
}
configure_init() {
:
}
configure_target() {
:
}
make_init() {
for font in spleen-5x8 spleen-6x12
do
${TOOLCHAIN}/usr/bin/bdf2psf --fb \
${font}.bdf \
${TOOLCHAIN}/usr/share/bdf2psf/standard.equivalents \
${TOOLCHAIN}/usr/share/bdf2psf/ascii.set+${TOOLCHAIN}/usr/share/bdf2psf/linux.set+${TOOLCHAIN}/usr/share/bdf2psf/useful.set 512 \
${font}.psfu
done
2023-10-17 01:34:51 +00:00
}
make_target() {
make_init
2023-10-17 01:34:51 +00:00
}
makeinstall_init() {
mkdir -p ${INSTALL}/usr/share/consolefonts
cp -rf *.bdf ${INSTALL}/usr/share/consolefonts
cp -rf *.psfu ${INSTALL}/usr/share/consolefonts
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/share/consolefonts
cp -rf ${PKG_BUILD}/*.bdf ${INSTALL}/usr/share/consolefonts
cp -rf ${PKG_BUILD}/*.psfu ${INSTALL}/usr/share/consolefonts
}