| 1 | defpkgbuild(encodings, |
| 2 | #:pkgname, "encodings", |
| 3 | #:pkgver, "1.0.7", |
| 4 | #:pkgrel, 1, |
| 5 | #:pkgdesc, "X11 font encoding tables", |
| 6 | #:arch, [#:any], |
| 7 | #:license, "Public Domain", |
| 8 | #:url, "https://www.x.org/", |
| 9 | #:makedepends, ["mkfontscale"], |
| 10 | #:source, ["https://xorg.freedesktop.org/archive/individual/font/encodings-1.0.7.tar.xz"], |
| 11 | #:sha256sums, ["3a39a9f43b16521cdbd9f810090952af4f109b44fa7a865cd555f8febcea70a4"], |
| 12 | #:build, fn() { |
| 13 | root := get-environment-variable("VPAC_MAKEPKG_ROOT") |
| 14 | run("env", string-append("MKFONTSCALE=", root, "/usr/bin/mkfontscale"), |
| 15 | "encodings-1.0.7/configure", "--prefix=/usr", "--with-encodingsdir=/usr/share/fonts/X11/encodings") |
| 16 | run("make", string-append("MKFONTSCALE=vinix-run ", root, "/usr/bin/mkfontscale")) |
| 17 | }, |
| 18 | #:package, fn() { |
| 19 | root := get-environment-variable("VPAC_MAKEPKG_ROOT") |
| 20 | run("make", "install", string-append("MKFONTSCALE=vinix-run ", root, "/usr/bin/mkfontscale"), |
| 21 | string-append("DESTDIR=", pkgdir())) |
| 22 | run("test", "-s", string-append(pkgdir(), "/usr/share/fonts/X11/encodings/encodings.dir")) |
| 23 | run("install", "-Dm644", "encodings-1.0.7/COPYING", string-append(pkgdir(), "/usr/share/licenses/encodings/COPYING")) |
| 24 | }) |
| 25 | |