restic-integrity/PKGBUILD

29 lines
853 B
Text
Raw Permalink Normal View History

2022-04-10 19:58:48 +02:00
# Maintainer: networkException <git@nwex.de>
2022-04-10 19:58:48 +02:00
pkgname=restic-integrity
2022-08-15 13:10:22 +02:00
pkgver=1.2.1
2022-04-10 19:58:48 +02:00
pkgrel=1
pkgdesc="Check the integrity of a restic repository without unlocking it"
arch=('x86_64')
url="https://gitlab.upi.li/networkException/restic-integrity"
license=('BSD')
depends=()
makedepends=('cargo')
source=("$pkgname-$pkgver.tar::https://gitlab.upi.li/networkException/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar")
2022-08-15 13:10:22 +02:00
sha256sums=('999e12744de116b2a27913297614ea7bd90664268cf37f523c7150f396230f53')
2022-04-10 19:58:48 +02:00
build() {
cd "$pkgname-$pkgver"
cargo build --release --locked
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "target/release/restic-integrity" "$pkgdir/usr/bin/restic-integrity"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/${pkgname}/README.md"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}