vinix-ports / ports / libxkbfile / PKGBUILD.vile
27 lines · 26 sloc · 958 bytes · c33d8afc2906b8dd9a8b905224eccd49a44f7ad5
Raw
1defpkgbuild(libxkbfile,
2 #:pkgname, "libxkbfile",
3 #:pkgver, "1.1.3",
4 #:pkgrel, 1,
5 #:pkgdesc, "X11 keyboard file manipulation library",
6 #:arch, [#:x86-64, #:aarch64],
7 #:license, "MIT",
8 #:url, "https://www.x.org/",
9 #:depends, ["libx11"],
10 #:makedepends, ["xorgproto"],
11 #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libxkbfile-1.1.3.tar.xz"],
12 #:sha256sums, ["a9b63eea997abb9ee6a8b4fbb515831c841f471af845a09de443b28003874bec"],
13
14 #:build, fn() {
15 run("vinix-configure", "libxkbfile-1.1.3/configure")
16 run("make")
17 },
18 #:check, fn() {
19 run("test", "-s", "src/.libs/libxkbfile.so")
20 run("readelf", "-d", "src/.libs/libxkbfile.so")
21 },
22 #:package, fn() {
23 run("make", "install", string-append("DESTDIR=", pkgdir()))
24 run("find", pkgdir(), "-name", "*.la", "-delete")
25 run("install", "-Dm644", "libxkbfile-1.1.3/COPYING",
26 string-append(pkgdir(), "/usr/share/licenses/libxkbfile/COPYING"))
27 })
28