2022-08-05 06:28:18 +00:00
|
|
|
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
|
|
pkgname=openssl-sha512sum-shim
|
|
|
|
pkgver=1.0.2
|
2022-08-05 06:30:18 +00:00
|
|
|
pkgrel=1
|
2022-08-05 06:28:18 +00:00
|
|
|
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() {
|
2022-08-05 06:30:18 +00:00
|
|
|
install -Dm755 sha512sum "$pkgdir"/usr/sbin/sha512sum
|
2022-08-05 06:28:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
|
|
|
18faafc97528a77d92fc77832aafbaf359d371fa4f63c3a368237b13d76253e0ea781d62bbe88c42b39a18019bd7e3580a3d194abce824ee1f3bae4730f91666 openssl-sha512sum-shim-1.0.2.tar.gz
|
|
|
|
"
|