PKGBUILD: Initial commit
This commit is contained in:
parent
9bc18b3a42
commit
26313c4c7e
1 changed files with 27 additions and 0 deletions
27
PKGBUILD
Normal file
27
PKGBUILD
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Maintainer: networkException <git@nwex.de>
|
||||
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"
|
||||
}
|
Loading…
Reference in a new issue