ananicy-cpp/main.sh

23 lines
451 B
Bash
Raw Normal View History

2023-06-20 18:10:36 +02:00
#! /bin/bash
DEBIAN_FRONTEND=noninteractive
# 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
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/