27 lines
852 B
Bash
27 lines
852 B
Bash
# Maintainer: networkException <git@nwex.de>
|
|
pkgname=restic-integrity
|
|
pkgver=1.1.0
|
|
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")
|
|
sha256sums=('10c8f3ba68f9af1dccac70b345f893c20efb5f3c86ea3e361280e97e60a5e631')
|
|
|
|
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"
|
|
}
|