| 1 | defpkgbuild(mkfontscale, |
| 2 | #:pkgname, "mkfontscale", |
| 3 | #:pkgver, "1.2.3", |
| 4 | #:pkgrel, 1, |
| 5 | #:pkgdesc, "Scalable font index generator for X", |
| 6 | #:arch, [#:x86-64, #:aarch64], |
| 7 | #:license, "MIT", |
| 8 | #:url, "https://www.x.org/", |
| 9 | #:depends, ["libfontenc", "freetype", "zlib", "bzip2"], |
| 10 | #:makedepends, ["xorgproto"], |
| 11 | #:source, ["https://xorg.freedesktop.org/archive/individual/app/mkfontscale-1.2.3.tar.xz", "update-x11-misc-fonts.hook"], |
| 12 | #:sha256sums, [ |
| 13 | "2921cdc344f1acee04bcd6ea1e29565c1308263006e134a9ee38cf9c9d6fe75e", |
| 14 | "3d34e8785692b8df97e86c539004f4fb45bebd0239535bb3e52999cf3aea56ac" |
| 15 | ], |
| 16 | |
| 17 | #:build, fn() { |
| 18 | run("vinix-configure", "mkfontscale-1.2.3/configure") |
| 19 | run("make") |
| 20 | }, |
| 21 | #:check, fn() { |
| 22 | run("vinix-run", "./mkfontscale", "-v") |
| 23 | }, |
| 24 | #:package, fn() { |
| 25 | run("make", "install", string-append("DESTDIR=", pkgdir())) |
| 26 | run("install", "-Dm644", "update-x11-misc-fonts.hook", |
| 27 | string-append(pkgdir(), "/usr/share/libalpm/hooks/60-update-x11-misc-fonts.hook")) |
| 28 | run("install", "-Dm644", "mkfontscale-1.2.3/COPYING", |
| 29 | string-append(pkgdir(), "/usr/share/licenses/mkfontscale/COPYING")) |
| 30 | }) |
| 31 | |