summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--repo/system/freetype2.xibuild23
-rw-r--r--repo/system/grub.xibuild2
-rw-r--r--repo/system/libpng.xibuild20
3 files changed, 44 insertions, 1 deletions
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
+
+}