Build X server font support and regenerate bitmap font indexes
@@ -0,0 +1,31 @@
1+defpkgbuild(libxfont2,
2+ #:pkgname, "libxfont2",
3+ #:pkgver, "2.0.7",
4+ #:pkgrel, 1,
5+ #:pkgdesc, "X.Org X11 libXfont2 runtime library",
6+ #:arch, [#:x86-64, #:aarch64],
7+ #:license, "MIT",
8+ #:url, "https://www.x.org/",
9+ #:depends, ["libfontenc", "freetype", "zlib"],
10+ #:makedepends, ["xorgproto", "xtrans"],
11+ #:source, ["https://www.x.org/pub/individual/lib/libXfont2-2.0.7.tar.xz"],
12+ #:sha256sums, ["8b7b82fdeba48769b69433e8e3fbb984a5f6bf368b0d5f47abeec49de3e58efb"],
13+
14+ #:prepare, fn() {
15+ ; Requires.private already supplies zlib's linker flags at the consumer's prefix.
16+ run("sed", "-i", "s/@Z_LIBS@ //", "libXfont2-2.0.7/xfont2.pc.in")
17+ },
18+ #:build, fn() {
19+ run("vinix-configure", "libXfont2-2.0.7/configure")
20+ run("make")
21+ },
22+ #:check, fn() {
23+ run("test", "-s", ".libs/libXfont2.so")
24+ run("readelf", "-d", ".libs/libXfont2.so")
25+ },
26+ #:package, fn() {
27+ run("make", "install", string-append("DESTDIR=", pkgdir()))
28+ run("find", pkgdir(), "-name", "*.la", "-delete")
29+ run("install", "-Dm644", "libXfont2-2.0.7/COPYING",
30+ string-append(pkgdir(), "/usr/share/licenses/libxfont2/COPYING"))
31+ })
@@ -0,0 +1,30 @@
1+defpkgbuild(mkfontscale,
2+ #:pkgname, "mkfontscale",
3+ #:pkgver, "1.2.3",
4+ #:pkgrel, 1,
5+ #:pkgdesc, "Scalable font index generator for X",
6+ #:arch, [#:x86-64, #:aarch64],
7+ #:license, "MIT",
8+ #:url, "https://www.x.org/",
9+ #:depends, ["libfontenc", "freetype", "zlib", "bzip2"],
10+ #:makedepends, ["xorgproto"],
11+ #:source, ["https://xorg.freedesktop.org/archive/individual/app/mkfontscale-1.2.3.tar.xz", "update-x11-misc-fonts.hook"],
12+ #:sha256sums, [
13+ "2921cdc344f1acee04bcd6ea1e29565c1308263006e134a9ee38cf9c9d6fe75e",
14+ "3d34e8785692b8df97e86c539004f4fb45bebd0239535bb3e52999cf3aea56ac"
15+ ],
16+
17+ #:build, fn() {
18+ run("vinix-configure", "mkfontscale-1.2.3/configure")
19+ run("make")
20+ },
21+ #:check, fn() {
22+ run("vinix-run", "./mkfontscale", "-v")
23+ },
24+ #:package, fn() {
25+ run("make", "install", string-append("DESTDIR=", pkgdir()))
26+ run("install", "-Dm644", "update-x11-misc-fonts.hook",
27+ string-append(pkgdir(), "/usr/share/libalpm/hooks/60-update-x11-misc-fonts.hook"))
28+ run("install", "-Dm644", "mkfontscale-1.2.3/COPYING",
29+ string-append(pkgdir(), "/usr/share/licenses/mkfontscale/COPYING"))
30+ })
@@ -0,0 +1,12 @@
1+[Trigger]
2+Operation = Install
3+Operation = Upgrade
4+Operation = Remove
5+Type = Path
6+Target = usr/share/fonts/X11/misc/*.pcf.gz
7+
8+[Action]
9+Description = Updating the X11 bitmap font directory
10+When = PostTransaction
11+Depends = mkfontscale
12+Exec = /usr/bin/mkfontscale -b -s -l /usr/share/fonts/X11/misc