vinix-ports / libxau / PKGBUILD.vile
25 lines · 24 sloc · 896 bytes · bcf11589caebb12f81ae9333e428c4981c045c65
Raw
1defpkgbuild(libxau,
2 #:pkgname, "libxau",
3 #:pkgver, "1.0.11",
4 #:pkgrel, 2,
5 #:pkgdesc, "X11 authorization library",
6 #:arch, [#:x86-64, #:aarch64],
7 #:license, "MIT",
8 #:url, "https://xorg.freedesktop.org/",
9 #:depends, ["musl", "xorgproto"],
10 #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libXau-1.0.11.tar.xz"],
11 #:sha256sums, ["f3fa3282f5570c3f6bd620244438dbfbdd580fc80f02f549587a0f8ab329bbeb"],
12
13 #:build, fn() {
14 run("vinix-configure", "libXau-1.0.11/configure")
15 run("make")
16 },
17 #:check, fn() {
18 run("make", "Autest")
19 run("vinix-run", "--library-path", ".libs", ".libs/Autest")
20 },
21 #:package, fn() {
22 run("make", "install", string-append("DESTDIR=", pkgdir()))
23 run("find", pkgdir(), "-name", "*.la", "-delete")
24 run("install", "-Dm644", "libXau-1.0.11/COPYING", string-append(pkgdir(), "/usr/share/licenses/libxau/COPYING"))
25 })
26