openssl-sha512sum-shim: new ptrcport

This commit is contained in:
ptrcnull 2022-08-05 08:28:18 +02:00
parent e5b1c725a4
commit b075944c2c

View file

@ -0,0 +1,31 @@
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
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
"