From fd661b7964379359497f0c3345b6a6f677914f35 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 19 Feb 2022 02:17:47 +0000 Subject: added xorg drivers --- auto/generate-xorg-fonts.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 auto/generate-xorg-fonts.sh (limited to 'auto') diff --git a/auto/generate-xorg-fonts.sh b/auto/generate-xorg-fonts.sh new file mode 100755 index 0000000..7011aba --- /dev/null +++ b/auto/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 asciidoc xmlto lynx) +DEPS=(fontconfig libxcb elogind) + +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