Skip to content

Commit 660a743

Browse files
tannevaledclaudejhheider
authored
new(x.org/font-util): X.Org font-util (autotools, prereq for xserver) (#13106)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> Co-authored-by: Jacob Heider <jacob@pkgx.dev>
1 parent fe51b4e commit 660a743

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# X.Org font-util — small helper for X11 font packages.
2+
#
3+
# Provides:
4+
# - bdftruncate, ucs2any (BDF font format converter shell scripts)
5+
# - fontutil.pc (pkg-config exporting `fontrootdir` etc., consumed
6+
# by `xserver`'s meson.build to compute the default FontPath)
7+
# - util/fontutil.m4 (autotools macros used by sibling x.org/font-*
8+
# packages — none in pantry yet, but expected)
9+
#
10+
# NOT the source of `mkfontscale`/`mkfontdir` — those live in the
11+
# separate upstream `mkfontscale` package (not yet in pantry).
12+
#
13+
# Same role as arch's `xorg-font-util`, debian's `xfonts-utils`,
14+
# nixpkgs `xorg.fontutil`. Tiny — autotools-based, two shell scripts
15+
# + pkgconfig + m4 macros.
16+
17+
distributable:
18+
url: https://www.x.org/releases/individual/font/font-util-{{version}}.tar.xz
19+
strip-components: 1
20+
21+
versions:
22+
url: https://www.x.org/releases/individual/font/
23+
match: /font-util-\d+\.\d+\.\d+\.tar\.xz/
24+
strip:
25+
- /^font-util-/
26+
- /\.tar\.xz$/
27+
28+
display-name: X.Org font-util
29+
30+
build:
31+
dependencies:
32+
x.org/util-macros: "*"
33+
script:
34+
- ./configure --prefix={{prefix}}
35+
- make --jobs {{ hw.concurrency }}
36+
- make install
37+
38+
provides:
39+
- bin/bdftruncate
40+
- bin/ucs2any
41+
42+
test:
43+
dependencies:
44+
freedesktop.org/pkg-config: "*"
45+
script:
46+
# Accept either $libdir/pkgconfig (autotools default) or
47+
# $datarootdir/pkgconfig (some distros relocate); font-util's own
48+
# `make install` writes to lib/pkgconfig on most builds.
49+
- pkg-config --cflags --libs fontutil
50+
# Smoke-test the BDF scripts at least load:
51+
- test "$(bdftruncate --version)" = "font-util {{version}}"
52+
- test "$(ucs2any --version)" = "font-util {{version}}"

0 commit comments

Comments
 (0)