selected := get-environment-variable("VPAC_TARGET_ARCH") arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" } defpkgbuild(bdftopcf, #:pkgname, "bdftopcf", #:pkgver, "1.1.2", #:pkgrel, if string=?("aarch64", arch) { 2 } else { 1 }, #:pkgdesc, "X.Org font utility", #:arch, [#:x86-64, #:aarch64], #:license, "MIT", #:url, "https://www.x.org/", #:depends, if string=?("aarch64", arch) { ["musl>=1.2.6-4"] } else { ["musl"] }, #:makedepends, ["xorgproto"], #:source, ["https://xorg.freedesktop.org/archive/individual/util/bdftopcf-1.1.2.tar.xz"], #:sha256sums, ["bc60be5904330faaa3ddd2aed7874bee2f29e4387c245d6787552f067eb0523a"], #:build, fn() { run("vinix-configure", "bdftopcf-1.1.2/configure") run("make") }, #:check, fn() { run("readelf", "-l", "bdftopcf") }, #:package, fn() { run("make", "install", string-append("DESTDIR=", pkgdir())) run("install", "-Dm644", "bdftopcf-1.1.2/COPYING", string-append(pkgdir(), "/usr/share/licenses/bdftopcf/COPYING")) })