2024-08-07 17:32:57 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. ./pika-build-config.sh
|
|
|
|
|
|
|
|
VERSION="$PIKA_PACKAGE_VERSION"
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
|
2024-08-07 18:16:48 +02:00
|
|
|
apt-get update -y
|
|
|
|
apt-get install pika-pbuilder -y
|
|
|
|
|
2024-08-07 17:32:57 +02:00
|
|
|
# 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
|
|
|
|
|
2024-08-07 18:01:52 +02:00
|
|
|
pika-pbuilder-i386-init
|
2024-08-07 18:02:01 +02:00
|
|
|
pika-pbuilder-i386-build build ./*.dsc
|
2024-08-07 17:32:57 +02:00
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|