run-upstream-build/main_pbuilder.sh

29 lines
529 B
Bash
Executable File

#! /bin/bash
set -e
. ./pika-build-config.sh
VERSION="$PIKA_PACKAGE_VERSION"
echo "$PIKA_BUILD_ARCH" > pika-build-arch
apt-get update -y
apt-get install pika-pbuilder -y
# Get source code
if [[ "$PIKA_PACKAGE_NAME" == *-dmo ]];
then
apt-get source "$PIKA_PACKAGE_NAME" -y
else
apt-get source "$PIKA_PACKAGE_NAME=$VERSION" -y
fi
pika-pbuilder-i386-init
ARCH=i386 cowbuilder --architecture i386 --buildresult . --logfile buildlog.log "$@" --build ./*.dsc
# Move the debs to output
mkdir -p ./output
mv ./*.deb ./output/