28 lines
556 B
Bash
Executable File
28 lines
556 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
VERSION="0.1.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/
|