run-upstream-build/main.sh
ferreo d03a1fe681
Some checks failed
PikaOS Package Build & Release (Canary) (amd64-v3) / build (push) Failing after 14s
initial attempt
2024-07-27 19:48:07 +01:00

33 lines
600 B
Bash
Executable File

#! /bin/bash
set -e
. ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
VERSION="$PIKA_PACKAGE_VERSION"
# Clone Upstream
apt-get source "$PIKA_PACKAGE_NAME=$VERSION" -y
if [ "$PIKA_REBUILD" = true ] ; then
VERSION="$VERSION+$PIKA_REBUILD_VERSION"
fi
#TODO - DO PATCHING
#TODO - DO REVERSIONING FOR REBUILD
# Get build deps
#LOGNAME=root dh_make --createorig -y -l -p src-pkg-name_"$VERSION" || echo "dh-make: Ignoring Last Error"
apt-get build-dep ./ -y
# Build package
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/