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 +"