2024-08-10 13:11:44 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
VERSION="0.1.1"
|
|
|
|
|
|
|
|
source ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
|
2023-02-25 13:16:24 +01:00
|
|
|
# Clone Upstream
|
2024-08-10 13:11:44 +02:00
|
|
|
git clone https://gitlab.freedesktop.org/emersion/libdisplay-info -b "$VERSION"
|
2023-02-25 13:16:24 +01:00
|
|
|
cp -rvf ./debian ./libdisplay-info
|
|
|
|
mv ./libdisplay-info ./display-info
|
|
|
|
cd ./display-info
|
|
|
|
|
|
|
|
# Get build deps
|
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
2024-08-10 13:11:44 +02:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p display-info0_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
|
|
|
dpkg-buildpackage --no-sign
|
2023-02-25 13:16:24 +01:00
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|