vinix-ports / ports / xkeyboard-config / PKGBUILD.vile
26 lines · 25 sloc · 1.17 KB · c33d8afc2906b8dd9a8b905224eccd49a44f7ad5
Raw
1defpkgbuild(xkeyboard-config,
2 #:pkgname, "xkeyboard-config",
3 #:pkgver, "2.43",
4 #:pkgrel, 2,
5 #:pkgdesc, "X keyboard configuration files",
6 #:arch, [#:any],
7 #:license, "MIT",
8 #:url, "https://www.x.org/",
9 #:source, ["https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/archive/xkeyboard-config-2.43/xkeyboard-config-xkeyboard-config-2.43.tar.gz"],
10 #:sha256sums, ["460cd2fd1e880a6f223951a6cbafb67a99569f7556360151e49b43e4e60601e9"],
11
12 #:build, fn() {
13 ; Upstream otherwise drops every translation when the build host lacks gettext.
14 run("msgfmt", "--version")
15 run("meson", "setup", "build", "xkeyboard-config-xkeyboard-config-2.43", "--prefix=/usr", "-Dnls=true")
16 run("meson", "compile", "-C", "build", "-j2")
17 },
18 #:check, fn() {
19 run("test", "-s", "build/rules/evdev")
20 },
21 #:package, fn() {
22 run("meson", "install", "--no-rebuild", "-C", "build", "--destdir", pkgdir())
23 run("test", "-s", string-append(pkgdir(), "/usr/share/locale/de/LC_MESSAGES/xkeyboard-config.mo"))
24 run("install", "-Dm644", "xkeyboard-config-xkeyboard-config-2.43/COPYING",
25 string-append(pkgdir(), "/usr/share/licenses/xkeyboard-config/COPYING"))
26 })
27