run-upstream-build/main.sh

36 lines
751 B
Bash
Raw Normal View History

2024-07-27 20:12:37 +02:00
#! /bin/bash
set -e
. ./pika-build-config.sh
2024-07-27 20:48:07 +02:00
VERSION="$PIKA_PACKAGE_VERSION"
2024-07-27 20:12:37 +02:00
2024-07-27 21:09:38 +02:00
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2024-07-27 20:48:07 +02:00
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
2024-07-27 20:12:37 +02:00
# Get build deps
2024-07-27 20:48:07 +02:00
#LOGNAME=root dh_make --createorig -y -l -p src-pkg-name_"$VERSION" || echo "dh-make: Ignoring Last Error"
2024-07-27 21:02:20 +02:00
# Get build deps
apt-get build-dep "$PIKA_PACKAGE_NAME=$VERSION" -y
2024-07-27 20:12:37 +02:00
2024-07-27 21:30:05 +02:00
find ./ -maxdepth 1 -name "$PIKA_PACKAGE_NAME*" -type d | head -1
cd $(find ./ -maxdepth 1 -name "$PIKA_PACKAGE_NAME*" -type d | head -1)
dpkg-buildpackage --no-sign
2024-07-27 20:12:37 +02:00
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/