2024-07-25 14:30:40 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
VERSION="3.0"
|
|
|
|
|
|
|
|
source ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
|
2023-02-25 10:59:05 +01:00
|
|
|
# Clone Upstream
|
|
|
|
cd ./pika-amdgpu-switcher
|
|
|
|
|
|
|
|
# Get build deps
|
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
2024-07-25 14:30:40 +02:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p pika-amdgpu-switcher_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
2023-09-29 19:11:14 +02:00
|
|
|
dpkg-buildpackage --no-sign
|
2023-02-25 10:59:05 +01:00
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|