blob: ea9fb93296d288b67432b4b6ce42f35428b9eb93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Maintainer: solnce <echo c29sbmNlQHJhdGFqY3phay5vbmU= | base64 -d>
pkgname=zfs-undelete
pkgver=0.1.0
pkgrel=1
pkgdesc='easy-to-use CLI tool to recover files from zfs snapshots'
url="https://github.com/arctic-penguin/$pkgname"
source=("https://github.com/arctic-penguin/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
arch=('any')
license=('GPL3')
depends=('zfs-utils')
makedepends=('rust')
sha256sums=('013c8f4ba6c9a1213ab6e841553858f6c5f29332f5a87bc4748ea0abf7fec98a')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cargo build --release
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
cargo test --release
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 target/release/zfs-undelete "${pkgdir}/usr/bin/zfs-undelete"
}
|