restic-integrity/PKGBUILD

28 lines
852 B
Text
Raw Normal View History

2022-04-10 19:58:48 +02:00
# Maintainer: networkException <git@nwex.de>
pkgname=restic-integrity
2022-08-15 12:57:08 +02:00
pkgver=1.2.0
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 12:57:08 +02:00
sha256sums=('bdfee19a7a94bdf496eb523a6178044b85c6f0a967bba5acdb8ca3b656b897b4')
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"
}