diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 50 |
1 files changed, 34 insertions, 16 deletions
@@ -1,26 +1,44 @@ # Maintainer: Michael Bauer <michael@m-bauer.org> -pkgname=radicle-cli -pkgver=0.6.1 -pkgrel=3 +pkgname=radicle-cli-git +pkgver=20240405.bc247dff +pkgrel=1 pkgdesc="Radicle command line interface" -arch=('x86_64') -url="https://app.radicle.xyz/seeds/seed.alt-clients.radicle.xyz/rad:git:hnrkmg77m8tfzj4gi4pa4mbhgysfgzwntjpao/tree" -license=('GPL3') +arch=('x86_64' 'aarch64') +_repoid=z3gqcJUoA1n9HaHKufZs5FCSGazv5 +url="https://app.radicle.xyz/nodes/seed.radicle.xyz/rad:$_repoid" +license=('MIT' 'Apache-2.0') depends=('libusb' 'gcc-libs' 'openssl') makedepends=('git' 'cargo') +source=("git+https://seed.radicle.xyz/$_repoid.git") -_commit=1e6ed9b # tags/v0.6.1 - only available via github repo, missing on radicly.xyz :-( -# _commit=4ae4174 # tags/0.6.0 +sha512sums=('SKIP') -source=("$pkgname-$pkgver::git+https://github.com/radicle-dev/radicle-cli.git#commit=${_commit}") -# TODO: Use radicle.xyz source instead of gituhub when release commit is available there -# source=("$pkgname-$pkgver::git+https://seed.alt-clients.radicle.xyz/radicle-cli.git#commit=${_commit}") +pkgver() { + cd "$srcdir/$_repoid" + git log -1 --format=%cd.%h --date=short|tr -d - +} -sha512sums=('SKIP') +prepare() { + cd $_repoid + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" +} + +build() { + cd $_repoid + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +check() { + cd $_repoid + cargo test --frozen --all-features +} package() { - depends+=('openssh') - cd "$pkgname-$pkgver" - export RUSTUP_TOOLCHAIN=stable - cargo install $pkgname --no-track --locked --root "$pkgdir/usr/" --path . + cd $_repoid + find target/release \ + -maxdepth 1 \ + -executable \ + -type f \ + -exec install -Dm0755 -t "$pkgdir/usr/bin/" {} + } |