ananicy-rules/main.sh
Ward from fusion-voyager-3 11929b939a
Some checks failed
PikaOS Package Build & Release (Canary) (amd64-v3) / build (push) Failing after 15s
port to pika os 4
2024-07-30 02:25:41 +03:00

28 lines
556 B
Bash
Executable File

#! /bin/bash
set -e
VERSION="0.0.git.cachyos"
source ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
# Clone Upstream
cd ananicy-rules
mkdir etc
git clone https://github.com/CachyOS/ananicy-rules.git ./etc/ananicy.d
mv -f ../ananicy.conf ./etc/ananicy.d/ananicy.conf
# Get build deps
apt-get build-dep ./ -y
# Build package
LOGNAME=root dh_make --createorig -y -l -p ananicy-rules_"$VERSION" || echo "dh-make: Ignoring Last Error"
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/