2023-06-26 20:42:35 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
2024-07-30 01:21:57 +02:00
|
|
|
set -e
|
|
|
|
|
2024-10-26 16:18:35 +02:00
|
|
|
VERSION="0.1.git.cachyos"
|
2024-07-30 01:21:57 +02:00
|
|
|
|
|
|
|
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
|
2024-07-30 01:24:01 +02:00
|
|
|
mkdir etc
|
2023-06-26 20:52:46 +02:00
|
|
|
git clone https://github.com/CachyOS/ananicy-rules.git ./etc/ananicy.d
|
2024-07-30 01:25:41 +02:00
|
|
|
mv -f ../ananicy.conf ./etc/ananicy.d/ananicy.conf
|
2023-07-26 17:18:38 +02:00
|
|
|
|
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/
|