| 1 | defpkgbuild(libxdmcp, |
| 2 | #:pkgname, "libxdmcp", |
| 3 | #:pkgver, "1.1.5", |
| 4 | #:pkgrel, 3, |
| 5 | #:pkgdesc, "X display manager control protocol library", |
| 6 | #:arch, [#:x86-64, #:aarch64], |
| 7 | #:license, "MIT", |
| 8 | #:url, "https://xorg.freedesktop.org/", |
| 9 | #:depends, ["musl", "xorgproto", "libbsd"], |
| 10 | #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libXdmcp-1.1.5.tar.xz"], |
| 11 | #:sha256sums, ["d8a5222828c3adab70adf69a5583f1d32eb5ece04304f7f8392b6a353aa2228c"], |
| 12 | |
| 13 | #:prepare, fn() { |
| 14 | run("sed", "-i", "/^Requires: xproto$/a Requires.private: libbsd", "libXdmcp-1.1.5/xdmcp.pc.in") |
| 15 | }, |
| 16 | #:build, fn() { |
| 17 | run("vinix-configure", "libXdmcp-1.1.5/configure", "--disable-docs") |
| 18 | run("make") |
| 19 | }, |
| 20 | #:check, fn() { |
| 21 | run("make", "-C", "test", "Array") |
| 22 | run("vinix-run", "--library-path", ".libs", "test/.libs/Array") |
| 23 | }, |
| 24 | #:package, fn() { |
| 25 | run("make", "install", string-append("DESTDIR=", pkgdir())) |
| 26 | run("find", pkgdir(), "-name", "*.la", "-delete") |
| 27 | run("install", "-Dm644", "libXdmcp-1.1.5/COPYING", string-append(pkgdir(), "/usr/share/licenses/libxdmcp/COPYING")) |
| 28 | }) |
| 29 | |