defpkgbuild(ssl-client, #:pkgname, "ssl-client", #:pkgver, "1.37.0", #:pkgrel, 1, #:pkgdesc, "TLS helper for BusyBox wget with certificate and hostname verification", #:arch, [#:x86-64, #:aarch64], #:url, "https://gitlab.alpinelinux.org/alpine/aports", #:license, "GPL-2.0-only", #:depends, ["musl", "openssl", "ca-certificates-bundle"], #:source, ["https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/busybox/ssl_client.c", "check.py"], #:sha256sums, ["f36fb83637a12fe0706f828a3e9a4181ac6ed452b59d5d30fcf4dbe1884b8aed", "6114d569cef266336ebc8a47428860ce3d6849c5c338bf528f9065673703714d"], #:build, fn() { run("vinix-cc", "-O2", "ssl_client.c", "-lssl", "-lcrypto", "-o", "ssl_client") }, #:check, fn() { run("python3", "check.py") }, #:package, fn() { run("install", "-Dm755", "ssl_client", string-append(pkgdir(), "/usr/bin/ssl_client")) })