mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-08 12:22:15 +01:00
67 lines
1.5 KiB
Plaintext
67 lines
1.5 KiB
Plaintext
# Contributor: TBK <alpine@jjtc.eu>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
pkgname=pijul
|
|
pkgver=1.0.0_beta9
|
|
_pkgver="1.0.0-beta.${pkgver##*_beta}"
|
|
pkgrel=0
|
|
pkgdesc="Patch-based distributed version control system"
|
|
url="https://pijul.org/"
|
|
# s390x, loongarch64: fails to build due to nix crate
|
|
# riscv64: rlimit::Resource::NOFILE not found
|
|
arch="all !s390x !riscv64 !loongarch64"
|
|
license="GPL-2.0-or-later"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
libsodium-dev
|
|
openssl-dev
|
|
zstd-dev
|
|
"
|
|
subpackages="
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/pijul/$_pkgver/download"
|
|
builddir="$srcdir/$pkgname-$_pkgver"
|
|
options="net"
|
|
|
|
# secfixes:
|
|
# 1.0.0_beta8-r1:
|
|
# - CVE-2023-48795
|
|
|
|
export SODIUM_USE_PKG_CONFIG=1
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release
|
|
|
|
for shell in bash fish zsh; do
|
|
./target/release/pijul completion $shell > pijul.$shell
|
|
done
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dvm755 target/release/pijul -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dvm644 pijul.bash \
|
|
"$pkgdir"/usr/share/bash-completion/completions/pijul
|
|
install -Dvm644 pijul.fish \
|
|
"$pkgdir"/usr/share/fish/vendor_completions.d/pijul.fish
|
|
install -Dvm644 pijul.zsh \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_pijul
|
|
}
|
|
|
|
sha512sums="
|
|
5e4facce9b1620b1ea31d6735ccb5fb0f862f7039cf88b63b4bafb8f5efd7de2a8610cd0cf5b3fcf555a25f6df3fd9d8ea9b34dc439d235b3b87345651402123 pijul-1.0.0_beta9.tar.gz
|
|
"
|