From bb499959d88da1b3937c23b5405089c907188a81 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 10 Mar 2022 11:59:16 +0000 Subject: added and patched broken packages --- auto/one-shot/generate-xorg-fonts.sh | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 auto/one-shot/generate-xorg-fonts.sh (limited to 'auto/one-shot/generate-xorg-fonts.sh') diff --git a/auto/one-shot/generate-xorg-fonts.sh b/auto/one-shot/generate-xorg-fonts.sh new file mode 100755 index 0000000..0cc4c60 --- /dev/null +++ b/auto/one-shot/generate-xorg-fonts.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +make_xibuild () { + local lib=$1 + local ver=$2 + local xibuild="repo/font/${lib,,}.xibuild" + + cat > $xibuild << "EOF" +#!/bin/bash + +MAKEDEPS=(make mkfontscale) +DEPS=(fontconfig libxcb xcursor-themes) + +EOF + echo "PKG_VER=$ver" >> $xibuild + printf 'SOURCE=https://www.x.org/pub/individual/font/%s-$PKG_VER.tar.bz2\n' $lib >> $xibuild + + echo "" >> $xibuild + echo "build () {" >> $xibuild + printf ' ./configure $XORG_CONFIG\n' >> $xibuild + echo " make" >> $xibuild + echo "}" >> $xibuild + echo "" >> $xibuild + + echo "package () {" >> $xibuild + printf ' make DESTDIR=$PKG_DEST install\n\n' >> $xibuild + printf 'install -v -d -m755 $PKG_DEST/usr/share/fonts &&\nln -svfn $XORG_PREFIX/share/fonts/X11/OTF $PKG_DEST/usr/share/fonts/X11-OTF &&\nln -svfn $XORG_PREFIX/share/fonts/X11/TTF $PKG_DEST/usr/share/fonts/X11-TTF\n}' >> $xibuild + printf "${lib,,} " +} + +cat > /tmp/fonts.versions << "EOF" +encodings 1.0.5 +font-alias 1.0.4 +font-adobe-utopia-type1 1.0.4 +font-bh-ttf 1.0.3 +font-bh-type1 1.0.3 +font-ibm-type1 1.0.3 +font-misc-ethiopic 1.0.4 +font-xfree86-type1 1.0.4 +EOF + +while IFS= read -r line; do + make_xibuild $line +done < /tmp/fonts.versions -- cgit v1.2.1