32 lines
537 B
Bash
Raw Normal View History

2024-08-07 18:32:57 +03:00
#! /bin/bash
set -e
. ./pika-build-config.sh
VERSION="$PIKA_PACKAGE_VERSION"
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2024-08-09 00:23:25 +03:00
# Install Pbuilder config
cp -rvf ./pika-pbuilder/* /
2024-08-07 18:16:48 +02:00
2024-08-07 18:32:57 +03: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 20:40:56 +03:00
### TODO: Native patching
### TODO: Quilt patching
### TODO: NMU REBUILD
2024-08-07 19:14:57 +02:00
2024-08-09 00:23:25 +03:00
$PIKA_PBUILDER_INIT
$PIKA_PBUILDER_BUILD --build ./*.dsc
2024-08-07 18:32:57 +03:00
# Move the debs to output
mkdir -p ./output
mv ./*.deb ./output/