2023-06-20 18:10:36 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
2024-07-30 01:15:48 +02:00
|
|
|
set -e
|
|
|
|
|
|
|
|
VERSION="1.1.1.git"
|
|
|
|
|
|
|
|
source ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
2023-06-20 18:10:36 +02:00
|
|
|
|
|
|
|
# Clone Upstream
|
2023-06-20 18:11:28 +02:00
|
|
|
git clone https://gitlab.com/ananicy-cpp/ananicy-cpp.git
|
|
|
|
cd ananicy-cpp
|
|
|
|
cp -rvf ../debian ./
|
2023-06-20 18:10:36 +02:00
|
|
|
|
2023-06-26 21:08:27 +02:00
|
|
|
# Remove weird path from the systemd file due to our prefix overiding
|
2023-06-26 21:18:44 +02:00
|
|
|
sed -e 's @CMAKE_INSTALL_PREFIX@ /usr g' -i ananicy-cpp.service
|
2023-06-26 21:08:27 +02:00
|
|
|
|
2023-06-20 18:10:36 +02:00
|
|
|
# Get build deps
|
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
2024-07-30 01:15:48 +02:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p ananicy-cpp_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
2023-06-20 18:10:36 +02:00
|
|
|
dpkg-buildpackage --no-sign
|
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|