vinix-ports / ports / ssl-client / PKGBUILD.vile
22 lines · 22 sloc · 964 bytes · c33d8afc2906b8dd9a8b905224eccd49a44f7ad5
Raw
1defpkgbuild(ssl-client,
2 #:pkgname, "ssl-client",
3 #:pkgver, "1.37.0",
4 #:pkgrel, 1,
5 #:pkgdesc, "TLS helper for BusyBox wget with certificate and hostname verification",
6 #:arch, [#:x86-64, #:aarch64],
7 #:url, "https://gitlab.alpinelinux.org/alpine/aports",
8 #:license, "GPL-2.0-only",
9 #:depends, ["musl", "openssl", "ca-certificates-bundle"],
10 #:source, ["https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/busybox/ssl_client.c",
11 "check.py"],
12 #:sha256sums, ["f36fb83637a12fe0706f828a3e9a4181ac6ed452b59d5d30fcf4dbe1884b8aed",
13 "6114d569cef266336ebc8a47428860ce3d6849c5c338bf528f9065673703714d"],
14 #:build, fn() {
15 run("vinix-cc", "-O2", "ssl_client.c", "-lssl", "-lcrypto", "-o", "ssl_client")
16 },
17 #:check, fn() {
18 run("python3", "check.py")
19 },
20 #:package, fn() {
21 run("install", "-Dm755", "ssl_client", string-append(pkgdir(), "/usr/bin/ssl_client"))
22 })
23