From 6da2b8fc249ebdc09293735dabcab4d3c4b379c3 Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 18 Jan 2022 16:59:16 +0000 Subject: added font packages --- repo/system/freetype2.xibuild | 23 +++++++++++++++++++++++ repo/system/grub.xibuild | 2 +- repo/system/libpng.xibuild | 20 ++++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 repo/system/freetype2.xibuild create mode 100644 repo/system/libpng.xibuild (limited to 'repo') diff --git a/repo/system/freetype2.xibuild b/repo/system/freetype2.xibuild new file mode 100644 index 0000000..a86ffa4 --- /dev/null +++ b/repo/system/freetype2.xibuild @@ -0,0 +1,23 @@ +#!/bin/bash + +DEPS=(brotli libpng which) + +PKG_VER=2.11.1 +SOURCE=https://downloads.sourceforge.net/freetype/freetype-$PKG_VER.tar.xz +DESC="Font rasterization library" + +prepare () { + sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg && + + sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \ + -i include/freetype/config/ftoption.h +} + +build () { + ./configure --prefix=/usr --enable-freetype-config --disable-static && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/grub.xibuild b/repo/system/grub.xibuild index 3e8c1c2..9d3ed8f 100644 --- a/repo/system/grub.xibuild +++ b/repo/system/grub.xibuild @@ -1,6 +1,6 @@ #!/bin/bash -DEPS=(sh xz gettext device-mapper efibootmgr) +DEPS=(sh xz gettext device-mapper efibootmgr freetype2) PKG_VER=2.06 SOURCE=https://ftp.gnu.org/gnu/grub/grub-$PKG_VER.tar.xz diff --git a/repo/system/libpng.xibuild b/repo/system/libpng.xibuild new file mode 100644 index 0000000..e434a5a --- /dev/null +++ b/repo/system/libpng.xibuild @@ -0,0 +1,20 @@ +#!/bin/bash + +DEPS=() + +PKG_VER=1.6.37 +SOURCE=https://downloads.sourceforge.net/libpng/libpng-$PKG_VER.tar.xz +DESC="A collection of routines used to create PNG images" + + +build () { + ./configure --prefix=/usr --disable-static && + make +} + +package () { + make DESTDIR=$PKG_DEST install + mkdir -v /usr/share/doc/libpng-$PKG_VER && + cp -v README libpng-manual.txt /usr/share/doc/libpng-$PKG_VER + +} -- cgit v1.2.1