# Maintainer: orhun # https://github.com/orhun/pkgbuilds pkgname=conserve pkgver=0.6.16 pkgrel=1 pkgdesc="Robust portable backup tool written in Rust" arch=('x86_64') url="https://github.com/sourcefrog/conserve" license=('GPL2') depends=('gcc-libs') makedepends=('cargo') source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha512sums=('e8b5030f61c0c76e422fe486f2d6e7eaceda66e4973aa2b7a4b71fc7a4492091283f46381b84de0c6fb0510fc9272eb9338a018463f6c626938c433538dcf2c4') prepare() { cd "$pkgname-$pkgver" cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { cd "$pkgname-$pkgver" cargo build --release --frozen } check() { cd "$pkgname-$pkgver" cargo test --frozen } package() { cd "$pkgname-$pkgver" install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin" install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" }