mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 01:05:15 +03:00
this does not download deps that won't be used for the default build target (the ctarget we are building for implicitly). this makes quite a few fetches faster.. because a ton of crates download a 10mb "windows-sys" that is never used, amongst other things. maybe breaks a thing or two.
45 lines
947 B
Text
45 lines
947 B
Text
# Contributor: TBK <alpine@jjtc.eu>
|
|
# Maintainer: TBK <alpine@jjtc.eu>
|
|
pkgname=pijul
|
|
pkgver=1.0.0_beta2
|
|
_pkgver=1.0.0-beta.2
|
|
pkgrel=0
|
|
pkgdesc="Patch-based distributed version control system"
|
|
url="https://pijul.org/"
|
|
arch="all !s390x !riscv64" # Limited by cargo
|
|
license="GPL-2.0-or-later"
|
|
makedepends="
|
|
cargo
|
|
libsodium-dev
|
|
nettle-dev
|
|
openssl-dev
|
|
xxhash-dev
|
|
zstd-dev
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/pijul/$_pkgver/download"
|
|
builddir="$srcdir/$pkgname-$_pkgver"
|
|
options="net"
|
|
|
|
export SODIUM_USE_PKG_CONFIG=1
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/pijul -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
9e3b442c260b72398fe944640c9c6bec969de8191f92b799054e2693293892ed585d47cc06bdab0515d4881d145d4f829551d878131bc587870bb410ada2d4a2 pijul-1.0.0_beta2.tar.gz
|
|
"
|