| 1 | defpkgbuild(libuuid, |
| 2 | #:pkgname, "libuuid", |
| 3 | #:pkgver, "2.40.4", |
| 4 | #:pkgrel, 2, |
| 5 | #:pkgdesc, "UUID library and development files from util-linux", |
| 6 | #:arch, [#:x86-64, #:aarch64], |
| 7 | #:license, "BSD-3-Clause", |
| 8 | #:url, "https://www.kernel.org/pub/linux/utils/util-linux/", |
| 9 | #:depends, ["musl"], |
| 10 | #:makedepends, ["linux-headers"], |
| 11 | #:source, ["https://www.kernel.org/pub/linux/utils/util-linux/v2.40/util-linux-2.40.4.tar.xz"], |
| 12 | #:sha256sums, ["5c1daf733b04e9859afdc3bd87cc481180ee0f88b5c0946b16fdec931975fb79"], |
| 13 | |
| 14 | #:build, fn() { |
| 15 | run("vinix-configure", "util-linux-2.40.4/configure", |
| 16 | "--disable-all-programs", "--enable-libuuid", "--without-python", |
| 17 | "--disable-nls", "--disable-asciidoc") |
| 18 | run("make", "libuuid.la", "libuuid/uuid.pc") |
| 19 | }, |
| 20 | #:check, fn() { |
| 21 | run("make", "test_uuid_parser") |
| 22 | run("vinix-run", "--library-path", ".libs", ".libs/test_uuid_parser") |
| 23 | }, |
| 24 | #:package, fn() { |
| 25 | run("install", "-d", string-append(pkgdir(), "/usr/lib")) |
| 26 | run("./libtool", "--mode=install", "install", "-c", "libuuid.la", string-append(pkgdir(), "/usr/lib/")) |
| 27 | run("rm", string-append(pkgdir(), "/usr/lib/libuuid.la")) |
| 28 | run("install", "-Dm644", "util-linux-2.40.4/libuuid/src/uuid.h", string-append(pkgdir(), "/usr/include/uuid/uuid.h")) |
| 29 | run("install", "-Dm644", "libuuid/uuid.pc", string-append(pkgdir(), "/usr/lib/pkgconfig/uuid.pc")) |
| 30 | run("install", "-Dm644", "util-linux-2.40.4/Documentation/licenses/COPYING.BSD-3-Clause", |
| 31 | string-append(pkgdir(), "/usr/share/licenses/libuuid/COPYING")) |
| 32 | }) |
| 33 | |