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")) })