2023-06-11 17:04:47 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
2024-07-26 16:58:06 +02:00
|
|
|
set -e
|
|
|
|
|
2024-10-05 19:30:07 +02:00
|
|
|
VERSION="0.2.7.git2"
|
2024-07-26 16:58:06 +02:00
|
|
|
|
|
|
|
source ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
2023-06-11 17:04:47 +02:00
|
|
|
|
|
|
|
# Clone Upstream
|
2024-07-26 16:58:06 +02:00
|
|
|
#git clone --recurse-submodules https://github.com/nwg-piotr/nwg-look -b v"$VERSION"
|
2023-06-11 17:07:49 +02:00
|
|
|
git clone --recurse-submodules https://github.com/nwg-piotr/nwg-look
|
2024-07-26 16:58:06 +02:00
|
|
|
cp -rvf ./debian ./nwg-look/
|
|
|
|
if [[ "$PIKA_BUILD_ARCH" == "amd64-v3" ]]
|
|
|
|
then
|
|
|
|
cp -rvf ./Makefile-v3 ./nwg-look/Makefile
|
|
|
|
fi
|
|
|
|
cd ./nwg-look
|
2023-06-11 17:04:47 +02:00
|
|
|
|
|
|
|
# Get build deps
|
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
2024-07-26 16:58:06 +02:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p nwg-look_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
2023-06-11 17:04:47 +02:00
|
|
|
dpkg-buildpackage --no-sign
|
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|