ptrcports/alpine/openssl-sha512sum-shim/APKBUILD

32 lines
958 B
Text

# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=openssl-sha512sum-shim
pkgver=1.0.3
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"
options="!tracedeps" # it shouldnt collide with other impls
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/sbin/sha512sum
}
sha512sums="
2baf07175f5890e3315748ed343d172b5a52b082db86ec80c56422610ee2a81912e48f8df0171ed9208935b8ed4a6089a7dc72f0bc7611acde26def64589138c openssl-sha512sum-shim-1.0.3.tar.gz
"