python-pid/main.sh

27 lines
472 B
Bash
Raw Normal View History

2024-07-30 15:56:18 +02:00
#! /bin/bash
set -e
VERSION="3.0.4"
source ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2023-03-08 17:53:07 +01:00
# Clone Upstream
2024-07-30 15:56:18 +02:00
git clone https://github.com/trbs/pid -b "$VERSION"
2023-08-06 20:23:17 +02:00
cp -rvf ./debian ./pid/
cd ./pid
2023-03-08 17:53:07 +01:00
# Get build deps
apt-get build-dep ./ -y
# Build package
2024-07-30 15:56:18 +02:00
LOGNAME=root dh_make --createorig -y -l -p pid_"$VERSION" || echo "dh-make: Ignoring Last Error"
2023-05-24 17:11:09 +02:00
dpkg-buildpackage --no-sign
2023-03-08 17:53:07 +01:00
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/