2023-04-04 00:19:11 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
2024-07-23 23:14:47 +02:00
|
|
|
set -e
|
|
|
|
|
2024-07-24 13:01:08 +02:00
|
|
|
source ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
2024-07-23 23:14:47 +02:00
|
|
|
|
2024-07-24 13:01:08 +02:00
|
|
|
VERSION="1.0"
|
2023-04-04 00:19:11 +02:00
|
|
|
|
|
|
|
# Clone Upstream
|
2023-05-11 17:57:32 +02:00
|
|
|
mkdir -p ./src-pkg-name
|
|
|
|
cp -rvf ./debian ./src-pkg-name/
|
|
|
|
cd ./src-pkg-name/
|
2023-04-04 00:19:11 +02:00
|
|
|
|
|
|
|
# Get build deps
|
2024-07-23 23:14:47 +02:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p src-pkg-name_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
2023-04-04 00:19:11 +02:00
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
|
|
|
dpkg-buildpackage --no-sign
|
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|