From b075944c2ce4f4603f5c9d832dcd5d855d7189c9 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Fri, 5 Aug 2022 08:28:18 +0200 Subject: [PATCH] openssl-sha512sum-shim: new ptrcport --- openssl-sha512sum-shim/APKBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 openssl-sha512sum-shim/APKBUILD diff --git a/openssl-sha512sum-shim/APKBUILD b/openssl-sha512sum-shim/APKBUILD new file mode 100644 index 0000000..3666a21 --- /dev/null +++ b/openssl-sha512sum-shim/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Patrycja Rosa +# Maintainer: Patrycja Rosa +pkgname=openssl-sha512sum-shim +pkgver=1.0.2 +pkgrel=0 +pkgdesc="small execline wrapper for openssl dgst -sha512" +url="https://gitlab.alpinelinux.org/ptrcnull/openssl-sha512sum-shim" +arch="noarch" +license="BSD-2-Clause" +depends="execline openssl s6-portable-utils" +source="https://gitlab.alpinelinux.org/ptrcnull/openssl-sha512sum-shim/-/archive/$pkgver/openssl-sha512sum-shim-$pkgver.tar.gz" + +check() { + ( + cd "$srcdir" + echo "" + "$builddir"/sha512sum *.tar.gz + echo "" + ) > sums1.txt + echo "$sha512sums" > sums2.txt + + cmp sums1.txt sums2.txt +} + +package() { + install -Dm755 sha512sum "$pkgdir"/usr/bin/sha512sum +} + +sha512sums=" +18faafc97528a77d92fc77832aafbaf359d371fa4f63c3a368237b13d76253e0ea781d62bbe88c42b39a18019bd7e3580a3d194abce824ee1f3bae4730f91666 openssl-sha512sum-shim-1.0.2.tar.gz +"