vinix-ports / ports / npth / PKGBUILD.vile
25 lines · 25 sloc · 1018 bytes · c33d8afc2906b8dd9a8b905224eccd49a44f7ad5
Raw
1defpkgbuild(npth,
2 #:pkgname, "npth",
3 #:pkgver, "1.6",
4 #:pkgrel, 1,
5 #:pkgdesc, "Portable threads library for GnuPG",
6 #:arch, [#:x86-64, #:aarch64],
7 #:url, "https://gnupg.org/related_software/npth/",
8 #:license, "LGPL-2.0-or-later",
9 #:depends, ["musl"],
10 #:source, ["https://gnupg.org/ftp/gcrypt/npth/npth-1.6.tar.bz2"],
11 #:sha256sums, ["1393abd9adcf0762d34798dc34fdcf4d0d22a8410721e76f1e3afcd1daa4e2d1"],
12 #:build, fn() {
13 run("vinix-configure", "npth-1.6/configure")
14 run("make")
15 },
16 #:check, fn() {
17 run("vinix-run", "--library-path", "src/.libs", "tests/.libs/t-thread")
18 run("vinix-run", "--library-path", "src/.libs", "tests/.libs/t-mutex")
19 run("vinix-run", "--library-path", "src/.libs", "tests/.libs/t-fork")
20 },
21 #:package, fn() {
22 run("make", "install", string-append("DESTDIR=", pkgdir()))
23 run("find", pkgdir(), "-name", "*.la", "-delete")
24 run("install", "-Dm644", "npth-1.6/COPYING.LIB", string-append(pkgdir(), "/usr/share/licenses/npth/COPYING.LIB"))
25 })
26