ananicy-rules/main.sh

28 lines
546 B
Bash
Raw Normal View History

2023-06-26 20:42:35 +02:00
#! /bin/bash
2024-07-30 01:21:57 +02:00
set -e
VERSION="0.0.git.cachyos"
source ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2023-06-26 20:42:35 +02:00
# Clone Upstream
2023-06-26 20:52:46 +02:00
cd ananicy-rules
git clone https://github.com/CachyOS/ananicy-rules.git ./etc/ananicy.d
2023-06-26 20:42:35 +02:00
2023-07-26 17:18:38 +02:00
mv -f ./ananicy.conf ./etc/ananicy.d/ananicy.conf
2023-06-26 20:42:35 +02:00
# Get build deps
apt-get build-dep ./ -y
# Build package
2024-07-30 01:21:57 +02:00
LOGNAME=root dh_make --createorig -y -l -p ananicy-rules_"$VERSION" || echo "dh-make: Ignoring Last Error"
2023-06-26 20:42:35 +02:00
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/