vinix-ports / bdftopcf / PKGBUILD.vile
28 lines · 26 sloc · 1.07 KB · 826fc00e876354d8c477cd3ffc3365271a3de282
Raw
1selected := get-environment-variable("VPAC_TARGET_ARCH")
2arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" }
3
4defpkgbuild(bdftopcf,
5 #:pkgname, "bdftopcf",
6 #:pkgver, "1.1.2",
7 #:pkgrel, if string=?("aarch64", arch) { 2 } else { 1 },
8 #:pkgdesc, "X.Org font utility",
9 #:arch, [#:x86-64, #:aarch64],
10 #:license, "MIT",
11 #:url, "https://www.x.org/",
12 #:depends, if string=?("aarch64", arch) { ["musl>=1.2.6-4"] } else { ["musl"] },
13 #:makedepends, ["xorgproto"],
14 #:source, ["https://xorg.freedesktop.org/archive/individual/util/bdftopcf-1.1.2.tar.xz"],
15 #:sha256sums, ["bc60be5904330faaa3ddd2aed7874bee2f29e4387c245d6787552f067eb0523a"],
16
17 #:build, fn() {
18 run("vinix-configure", "bdftopcf-1.1.2/configure")
19 run("make")
20 },
21 #:check, fn() {
22 run("readelf", "-l", "bdftopcf")
23 },
24 #:package, fn() {
25 run("make", "install", string-append("DESTDIR=", pkgdir()))
26 run("install", "-Dm644", "bdftopcf-1.1.2/COPYING",
27 string-append(pkgdir(), "/usr/share/licenses/bdftopcf/COPYING"))
28 })
29