From bae611bce939ec89f434a6b22d07986e1a537e57 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 01:16:56 +0100 Subject: [PATCH] Build X11 cursor, bitmap fonts and encoding tables --- encodings/PKGBUILD.vile | 24 ++++++++++++++++++++++++ font-cursor-misc/PKGBUILD.vile | 29 +++++++++++++++++++++++++++++ font-misc-misc/PKGBUILD.vile | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 encodings/PKGBUILD.vile create mode 100644 font-cursor-misc/PKGBUILD.vile create mode 100644 font-misc-misc/PKGBUILD.vile diff --git a/encodings/PKGBUILD.vile b/encodings/PKGBUILD.vile new file mode 100644 index 0000000..67f12f1 --- /dev/null +++ b/encodings/PKGBUILD.vile @@ -0,0 +1,24 @@ +defpkgbuild(encodings, + #:pkgname, "encodings", + #:pkgver, "1.0.7", + #:pkgrel, 1, + #:pkgdesc, "X11 font encoding tables", + #:arch, [#:any], + #:license, "Public Domain", + #:url, "https://www.x.org/", + #:makedepends, ["mkfontscale"], + #:source, ["https://xorg.freedesktop.org/archive/individual/font/encodings-1.0.7.tar.xz"], + #:sha256sums, ["3a39a9f43b16521cdbd9f810090952af4f109b44fa7a865cd555f8febcea70a4"], + #:build, fn() { + root := get-environment-variable("VPAC_MAKEPKG_ROOT") + run("env", string-append("MKFONTSCALE=", root, "/usr/bin/mkfontscale"), + "encodings-1.0.7/configure", "--prefix=/usr", "--with-encodingsdir=/usr/share/fonts/X11/encodings") + run("make", string-append("MKFONTSCALE=vinix-run ", root, "/usr/bin/mkfontscale")) + }, + #:package, fn() { + root := get-environment-variable("VPAC_MAKEPKG_ROOT") + run("make", "install", string-append("MKFONTSCALE=vinix-run ", root, "/usr/bin/mkfontscale"), + string-append("DESTDIR=", pkgdir())) + run("test", "-s", string-append(pkgdir(), "/usr/share/fonts/X11/encodings/encodings.dir")) + run("install", "-Dm644", "encodings-1.0.7/COPYING", string-append(pkgdir(), "/usr/share/licenses/encodings/COPYING")) + }) diff --git a/font-cursor-misc/PKGBUILD.vile b/font-cursor-misc/PKGBUILD.vile new file mode 100644 index 0000000..46d5043 --- /dev/null +++ b/font-cursor-misc/PKGBUILD.vile @@ -0,0 +1,29 @@ +defpkgbuild(font-cursor-misc, + #:pkgname, "font-cursor-misc", + #:pkgver, "1.0.4", + #:pkgrel, 1, + #:pkgdesc, "X.org misc font", + #:arch, [#:any], + #:license, "Public Domain", + #:url, "https://www.x.org/", + #:depends, ["font-alias", "mkfontscale"], + #:makedepends, ["bdftopcf"], + #:source, ["https://xorg.freedesktop.org/archive/individual/font/font-cursor-misc-1.0.4.tar.xz"], + #:sha256sums, ["25d9c9595013cb8ca08420509993a6434c917e53ca1fec3f63acd45a19d4f982"], + + #:build, fn() { + root := get-environment-variable("VPAC_MAKEPKG_ROOT") + run("env", "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_SYSROOT_DIR=", root), + string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig:", root, "/usr/share/pkgconfig"), + string-append("BDFTOPCF=", root, "/usr/bin/bdftopcf"), "MKFONTDIR=/usr/bin/true", "MKFONTSCALE=/usr/bin/true", + "font-cursor-misc-1.0.4/configure", "--prefix=/usr", "--with-fontdir=/usr/share/fonts/X11/misc", "--with-compression=gzip") + run("make", string-append("BDFTOPCF=vinix-run ", root, "/usr/bin/bdftopcf")) + }, + #:check, fn() { + run("gzip", "-t", "cursor.pcf.gz") + }, + #:package, fn() { + run("make", "install", "MKFONTDIR=:", "MKFONTSCALE=:", "FCCACHE=:", string-append("DESTDIR=", pkgdir())) + run("install", "-Dm644", "font-cursor-misc-1.0.4/COPYING", + string-append(pkgdir(), "/usr/share/licenses/font-cursor-misc/COPYING")) + }) diff --git a/font-misc-misc/PKGBUILD.vile b/font-misc-misc/PKGBUILD.vile new file mode 100644 index 0000000..3b4bbd3 --- /dev/null +++ b/font-misc-misc/PKGBUILD.vile @@ -0,0 +1,32 @@ +defpkgbuild(font-misc-misc, + #:pkgname, "font-misc-misc", + #:pkgver, "1.1.3", + #:pkgrel, 1, + #:pkgdesc, "X.org misc font", + #:arch, [#:any], + #:license, "Public Domain", + #:url, "https://www.x.org/", + #:depends, ["font-alias", "mkfontscale"], + #:makedepends, ["bdftopcf", "font-util"], + #:source, ["https://xorg.freedesktop.org/archive/individual/font/font-misc-misc-1.1.3.tar.xz"], + #:sha256sums, ["79abe361f58bb21ade9f565898e486300ce1cc621d5285bec26e14b6a8618fed"], + + #:build, fn() { + root := get-environment-variable("VPAC_MAKEPKG_ROOT") + run("env", "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_SYSROOT_DIR=", root), + string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig:", root, "/usr/share/pkgconfig"), + string-append("BDFTOPCF=", root, "/usr/bin/bdftopcf"), "MKFONTDIR=/usr/bin/true", "MKFONTSCALE=/usr/bin/true", + string-append("UCS2ANY=", root, "/usr/bin/ucs2any"), string-append("BDFTRUNCATE=", root, "/usr/bin/bdftruncate"), + "font-misc-misc-1.1.3/configure", "--prefix=/usr", "--with-fontdir=/usr/share/fonts/X11/misc", "--with-compression=gzip") + run("make", string-append("BDFTOPCF=vinix-run ", root, "/usr/bin/bdftopcf"), + string-append("UCS2ANY=vinix-run ", root, "/usr/bin/ucs2any"), string-append("BDFTRUNCATE=vinix-run ", root, "/usr/bin/bdftruncate"), + string-append("UTIL_DIR=", root, "/usr/share/fonts/X11/util")) + }, + #:check, fn() { + run("gzip", "-t", "6x13.pcf.gz") + }, + #:package, fn() { + run("make", "install", "MKFONTDIR=:", "MKFONTSCALE=:", "FCCACHE=:", string-append("DESTDIR=", pkgdir())) + run("install", "-Dm644", "font-misc-misc-1.1.3/COPYING", + string-append(pkgdir(), "/usr/share/licenses/font-misc-misc/COPYING")) + }) -- 2.56.1