2022-08-05 06:28:18 +00:00
|
|
|
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
|
|
pkgname=openssl-sha512sum-shim
|
2022-08-06 09:27:36 +00:00
|
|
|
pkgver=1.0.3
|
|
|
|
pkgrel=0
|
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"
|
2022-08-05 13:34:46 +00:00
|
|
|
options="!tracedeps" # it shouldnt collide with other impls
|
2022-08-05 06:28:18 +00:00
|
|
|
|
|
|
|
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="
|
2022-08-06 09:27:36 +00:00
|
|
|
2baf07175f5890e3315748ed343d172b5a52b082db86ec80c56422610ee2a81912e48f8df0171ed9208935b8ed4a6089a7dc72f0bc7611acde26def64589138c openssl-sha512sum-shim-1.0.3.tar.gz
|
2022-08-05 06:28:18 +00:00
|
|
|
"
|