25 lines
797 B
Bash
25 lines
797 B
Bash
# Template file for 'pijul'
|
|
pkgname=pijul
|
|
version=0.12.2
|
|
revision=1
|
|
build_style=cargo
|
|
hostmakedepends="pkg-config clang"
|
|
makedepends="libsodium-devel libressl-devel nettle-devel"
|
|
short_desc="Distributed version control system based on patches"
|
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://pijul.org/"
|
|
distfiles="https://crates.io/api/v1/crates/pijul/${version}/download>pijul-${version}.tar.gz"
|
|
checksum=f92a3f4063e780ca45c161ceb0f42baf34dfeddf3359ebf6c2e0442d9abb5889
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
export HOST_CC="$BUILD_CC"
|
|
export HOST_CFLAGS="$BUILD_CFLAGS"
|
|
export BINDGEN_EXTRA_CLANG_ARGS="--sysroot=$XBPS_CROSS_BASE"
|
|
fi
|
|
|
|
# We only want to install the binary, so don't run cargo install
|
|
do_install() {
|
|
vbin target/${RUST_TARGET}/release/pijul
|
|
}
|