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
|
|
|
|
|
|
|
# Build package
|
2024-07-27 21:19:18 +02:00
|
|
|
ls -a
|
2024-07-27 21:18:16 +02:00
|
|
|
cd ./"$PIKA_PACKAGE_NAME*"/
|
|
|
|
dpkg-buildpackage --no-sign
|
2024-07-27 20:12:37 +02:00
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|