diff options
author | Rafael Baboni Dominiquini | 2024-11-20 21:54:19 -0300 |
---|---|---|
committer | Rafael Baboni Dominiquini | 2024-11-20 21:54:19 -0300 |
commit | 93b60b3a1517acd850acb2b649cd149f3c770759 (patch) | |
tree | 407b8e7ee6b64159f0497e654b8b03cc2211151f | |
download | aur-93b60b3a1517acd850acb2b649cd149f3c770759.tar.gz |
Published version: 0.0.6
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 59 |
3 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1190201a6fb3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = filepack + pkgdesc = Command-line file hashing and verification utility written in Rust + pkgver = 0.0.6 + pkgrel = 1 + url = https://github.com/casey/filepack + arch = x86_64 + license = custom:CC0 + makedepends = cargo + makedepends = help2man + makedepends = libgit2 + makedepends = libssh2 + depends = glibc + provides = filepack + conflicts = filepack + source = https://github.com/casey/filepack/archive/0.0.6.tar.gz + sha256sums = c4bbaf85629c3a21421668cb7b9c7a009085addc90a7e2a5e88531d359c35d10 + +pkgname = filepack diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f71c635dafda --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..49d2d04e3791 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dor com> + +_pkgauthor=casey +_pkgname=filepack +pkgname=${_pkgname} +pkgver=0.0.6 +pkgrel=1 +pkgdesc='Command-line file hashing and verification utility written in Rust' +url="https://github.com/${_pkgauthor}/${_pkgname}" +_urlraw="https://raw.githubusercontent.com/${_pkgauthor}/${_pkgname}/${pkgver}" +arch=('x86_64') +license=('custom:CC0') +depends=('glibc') +makedepends=('cargo' 'help2man' 'libgit2' 'libssh2') +conflicts=("${_pkgname}") +provides=("${_pkgname}") + +source=("${url}/archive/${pkgver}.tar.gz") +sha256sums=('c4bbaf85629c3a21421668cb7b9c7a009085addc90a7e2a5e88531d359c35d10') + +prepare() { + cd "$pkgname-$pkgver" + + export RUSTUP_TOOLCHAIN=stable + + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$pkgname-$pkgver" + + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + + cargo build --release --frozen +} + +package() { + cd "$pkgname-$pkgver" + + # binary + install -Dm 755 "target/release/${_pkgname}" "$pkgdir/usr/bin/${_pkgname}" + + # license + install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + + # docs + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" + install -Dm 644 DESIGN.md -t "$pkgdir/usr/share/doc/$pkgname" + install -Dm 644 CHANGELOG.md -t "$pkgdir/usr/share/doc/$pkgname" +} + +check() { + cd "$pkgname-$pkgver" + + export RUSTUP_TOOLCHAIN=stable + + cargo test --frozen --all +} |