2023-09-30 10:04:08 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
2024-07-25 16:57:35 +02:00
|
|
|
set -e
|
|
|
|
|
|
|
|
VERSION="2.6"
|
|
|
|
|
|
|
|
source ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
2023-09-30 10:04:08 +02:00
|
|
|
|
|
|
|
# Clone Upstream
|
2024-07-25 16:57:35 +02:00
|
|
|
git clone https://gitlab.freedesktop.org/hadess/switcheroo-control -b "$VERSION"
|
2023-09-30 10:05:34 +02:00
|
|
|
cp -rvf ./debian ./switcheroo-control/
|
|
|
|
cd ./switcheroo-control
|
|
|
|
|
2023-09-30 10:04:08 +02:00
|
|
|
# Get build deps
|
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
2024-07-25 16:57:35 +02:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p switcheroo-control_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
2023-09-30 10:04:08 +02:00
|
|
|
dpkg-buildpackage --no-sign
|
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|