diff options
author | Artem Vorotnikov | 2023-12-22 05:32:48 +0300 |
---|---|---|
committer | Artem Vorotnikov | 2023-12-22 05:32:48 +0300 |
commit | db2e4e0e9cb8a605127448d7c18b55777bd7dc9c (patch) | |
tree | 22a57137cde68c14ea2e520454b63424c8b656da | |
download | aur-sendme.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9180597c17e8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = sendme + pkgdesc = A tool to send files and directories, based on iroh + pkgver = 0.2.2 + pkgrel = 1 + url = https://github.com/n0-computer/sendme + arch = any + license = MIT + license = Apache + makedepends = cargo + source = sendme-0.2.2.tar.gz::https://static.crates.io/crates/sendme/sendme-0.2.2.crate + b2sums = 61baef285996c9f3433c89b74fa4e03574865d85d18b3968ee1bf6435e3b6039b4a9011ff978997e86a3decbc6317d4566c2cb51066c0066f21dbe1a142a9646 + +pkgname = sendme diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5f8162ecd6f6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Artem Vorotnikov <artem@vorotnikov.me> +pkgname=sendme +pkgver=0.2.2 +pkgrel=1 +pkgdesc="A tool to send files and directories, based on iroh" +arch=('any') +url="https://github.com/n0-computer/sendme" +license=('MIT' 'Apache') +makedepends=('cargo') +source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate") +b2sums=('61baef285996c9f3433c89b74fa4e03574865d85d18b3968ee1bf6435e3b6039b4a9011ff978997e86a3decbc6317d4566c2cb51066c0066f21dbe1a142a9646') + +prepare() { + cd $pkgname-$pkgver + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" +} + +build() { + cd $pkgname-$pkgver + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +check() { + cd $pkgname-$pkgver + export RUSTUP_TOOLCHAIN=stable + cargo test --frozen --all-features +} + +package() { + cd $pkgname-$pkgver + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" +} |