]>
git.proxmox.com Git - proxmox.git/blob - build.sh
5 export CARGO
=/usr
/bin
/cargo
6 export RUSTC
=/usr
/bin
/rustc
9 BUILDCMD
=${BUILDCMD:-"dpkg-buildpackage -b -uc -us"}
12 echo system
>build
/rust-toolchain
13 rm -rf "build/${CRATE}"
15 CONTROL
="$PWD/${CRATE}/debian/control"
17 if [ -e "$CONTROL" ]; then
18 # check but only warn, debcargo fails anyway if crates are missing
19 dpkg-checkbuilddeps
$PWD/${CRATE}/debian
/control || true
20 rm -f "$PWD/${CRATE}/debian/control"
23 debcargo package
--config "$PWD/${CRATE}/debian/debcargo.toml" --changelog-ready --no-overlay-write-back --directory "$PWD/build/${CRATE}" "${CRATE}" "$(dpkg-parsechangelog -l "${CRATE}/debian/changelog" -SVersion |
sed -e 's/-.*//')"
27 cp debian/control "$CONTROL"