mirror of
https://github.com/wofferl/proxmox-backup-arm64
synced 2025-12-30 07:03:51 +00:00
25
build.sh
25
build.sh
@@ -173,6 +173,7 @@ PATCHES="${BASE}/patches"
|
||||
SOURCES="${BASE}/sources"
|
||||
LOGFILE="build.log"
|
||||
PACKAGE_ARCH=$(dpkg-architecture -q DEB_BUILD_ARCH)
|
||||
HOST_ARCH=$(dpkg-architecture -q DEB_HOST_ARCH)
|
||||
HOST_CPU=$(dpkg-architecture -q DEB_HOST_GNU_CPU)
|
||||
HOST_SYSTEM=$(dpkg-architecture -q DEB_HOST_GNU_SYSTEM)
|
||||
BUILD_PACKAGE="server"
|
||||
@@ -300,26 +301,32 @@ EOF
|
||||
|
||||
cd "${SOURCES}"
|
||||
if [ "${BUILD_PACKAGE}" != "client" ]; then
|
||||
PROXMOX_BIOME_VER="2.0.0-beta.6-2"
|
||||
PROXMOX_BIOME_GIT="0440df4eae11820e85892e35a52482b8cd72d800" # 2.0.0
|
||||
if [ ! -e "${PACKAGES_BUILD}/proxmox-biome_${PROXMOX_BIOME_VER}_${PACKAGE_ARCH}.deb" ]; then
|
||||
PROXMOX_BIOME_VER="2.0.6-1~bpo12+1"
|
||||
PROXMOX_BIOME_GIT="ddb28c67cad102cc8bbecbbaa1edc5d101c7f782" # 2.0.6-1
|
||||
PROXMOX_BIOME_DOWNLOAD_VER=("=" "$PROXMOX_BIOME_VER")
|
||||
if [ "${HOST_ARCH}" = "amd64" ]; then
|
||||
download_package devel proxmox-biome "${PROXMOX_BIOME_DOWNLOAD_VER[@]}" "${PACKAGES_BUILD}"
|
||||
fi
|
||||
if [ ! -e "${PACKAGES_BUILD}/proxmox-biome_${PROXMOX_BIOME_VER}_${HOST_ARCH}.deb" ]; then
|
||||
git_clone_or_fetch https://git.proxmox.com/git/proxmox-biome.git
|
||||
git_clean_and_checkout ${PROXMOX_BIOME_GIT} proxmox-biome
|
||||
patch -p1 -d proxmox-biome/ <"${PATCHES}/proxmox-biome-build.patch"
|
||||
if [ "${PACKAGE_ARCH}" = "arm64" ]; then
|
||||
if [ "${HOST_ARCH}" = "arm64" ]; then
|
||||
patch -p1 -d proxmox-biome/ <"${PATCHES}/proxmox-biome-arm.patch"
|
||||
fi
|
||||
cd proxmox-biome
|
||||
set_package_info
|
||||
${SUDO} apt -y -a${PACKAGE_ARCH} build-dep .
|
||||
make deb
|
||||
mv -f proxmox-biome_${PROXMOX_BIOME_VER}_${PACKAGE_ARCH}.deb "${PACKAGES_BUILD}"
|
||||
# set backport version
|
||||
sed -i '1s/([0-9.-]\+)/('${PROXMOX_BIOME_VER}')/; 1s/trixie/bookworm-backports/' debian/changelog
|
||||
${SUDO} apt -y build-dep .
|
||||
env -i HOME=${HOME} TERM=${TERM} bash -c 'source /etc/profile; source ~/.cargo/env; env; make deb'
|
||||
mv -f proxmox-biome_${PROXMOX_BIOME_VER}_${HOST_ARCH}.deb "${PACKAGES_BUILD}"
|
||||
cd ..
|
||||
else
|
||||
echo "proxmox-biome up-to-date"
|
||||
fi
|
||||
if [ -e "${PACKAGES_BUILD}/proxmox-biome_${PROXMOX_BIOME_VER}_${PACKAGE_ARCH}.deb" ]; then
|
||||
${SUDO} apt install -y "${PACKAGES_BUILD}/proxmox-biome_${PROXMOX_BIOME_VER}_${PACKAGE_ARCH}.deb"
|
||||
if [ -e "${PACKAGES_BUILD}/proxmox-biome_${PROXMOX_BIOME_VER}_${HOST_ARCH}.deb" ]; then
|
||||
${SUDO} apt install -y "${PACKAGES_BUILD}/proxmox-biome_${PROXMOX_BIOME_VER}_${HOST_ARCH}.deb"
|
||||
else
|
||||
echo "proxmox-biome dependency missing"
|
||||
exit 1
|
||||
|
||||
@@ -45,12 +45,3 @@ index 7109d042..80bcb58b 100644
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends},
|
||||
Description: Biome offers JS formatter and linter, usable via CLI and LSP.
|
||||
Biome is a performant toolchain for web projects, it aims to provide developer
|
||||
diff --git a/debian/install b/debian/install
|
||||
index 80c48310..312138c2 100644
|
||||
--- a/debian/install
|
||||
+++ b/debian/install
|
||||
@@ -1,3 +1,3 @@
|
||||
src/biome.json usr/share/proxmox-biome/
|
||||
src/proxmox-biome usr/bin/
|
||||
-target/release/biome usr/bin
|
||||
+target/aarch64-unknown-linux-gnu/release/biome usr/bin
|
||||
|
||||
Reference in New Issue
Block a user