Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions srcpkgs/radicle/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Template file for 'radicle'
pkgname=radicle
version=1.9.1
revision=1
build_style=cargo
configure_args="--bin rad --bin radicle-node --bin git-remote-rad"
hostmakedepends="curl pkg-config"
makedepends="libgit2-1.9-devel"
depends="git>=2.34 openssh>=9.1"
short_desc="Radicle is a peer-to-peer & local-first git forge"
maintainer="gnist <gnist@kollektiv.email>"
license="MIT AND Apache-2.0"
homepage="https://radicle.dev"
changelog="https://radicle.network/nodes/seed.radicle.dev/rad%3Az3gqcJUoA1n9HaHKufZs5FCSGazv5/tree/CHANGELOG.md"
checksum=e444d2a5e5850490e00e4b13433e474898517c87e5151ec72610d657ac7c9e7c

do_fetch() {
mkdir -p ${XBPS_SRCDISTDIR}/radicle-${version}
cd ${XBPS_SRCDISTDIR}/radicle-${version}
curl --output radicle-${version}.tar.gz \
https://seed.radicle.dev/raw/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/archive/releases/${version}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a distfile that is checksum verified.

}

do_extract() {
mkdir -p ${XBPS_BUILDDIR}/radicle-${version}
bsdtar xf ${XBPS_SRCDISTDIR}/radicle-${version}/radicle-${version}.tar.gz -C ${XBPS_BUILDDIR}/radicle-${version}
}

do_install() {
: ${make_cmd:=cargo auditable}
: ${make_verbose:=-v}

${make_cmd} install ${XBPS_VERBOSE+${make_verbose}} --target ${RUST_TARGET} --root="${DESTDIR}/usr" \
--offline --locked --path crates/radicle-cli

${make_cmd} install ${XBPS_VERBOSE+${make_verbose}} --target ${RUST_TARGET} --root="${DESTDIR}/usr" \
--offline --locked --path crates/radicle-node

${make_cmd} install ${XBPS_VERBOSE+${make_verbose}} --target ${RUST_TARGET} --root="${DESTDIR}/usr" \
--offline --locked --path crates/radicle-remote-helper

rm -f "${DESTDIR}"/usr/.crates.toml
rm -f "${DESTDIR}"/usr/.crates2.json
}

post_install() {
vlicense LICENSE-APACHE
vlicense LICENSE-MIT
}