From 26313c4c7e50ba2f4e062ab3a8e875da30bbd662 Mon Sep 17 00:00:00 2001 From: networkException Date: Sun, 10 Apr 2022 19:58:48 +0200 Subject: [PATCH] PKGBUILD: Initial commit --- PKGBUILD | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..fb00180 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: networkException +pkgname=restic-integrity +pkgver=1.0.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=('34bf68147dc21b9300b37c4596108fd591ba6f3f99ef5f4264feaaf2768f15c2') + +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" +}