dirsha256sum/AUR/PKGBUILD
2022-07-29 19:24:07 +02:00

27 lines
547 B
Bash

pkgname=dirsha256sum
source=("${pkgname}::git+https://git.shimatta.de/mhu/dirsha256sum.git")
sha1sums=('SKIP')
pkgrel=1
arch=('i686' 'x86_64' 'arm')
pkgdesc="Script to calculate a sha256sum over an entire directory"
depends=('coreutils')
provides=('dirsha256sum')
pkgver=bb2839e
pkgver () {
cd "$pkgname"
git describe --long --always --tags | sed 's/^v//' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare () {
:;
}
build () {
:;
}
package () {
cd "$srcdir/$pkgname"
install -D -m775 "$srcdir/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
}