apt-btrfs-snapper/main.sh
2024-10-19 16:19:21 +02:00

30 lines
588 B
Bash
Executable File

#! /bin/bash
set -e
. ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
VERSION="1.0"
# Clone Upstream
git clone https://github.com/xhess/apt-btrfs-snapper
cp -rvf ./debian ./apt-btrfs-snapper/
cd ./apt-btrfs-snapper/
chmod +x apt-btrfs-snapper
chmod +x 80snapper
mv 80snapper 80apt-btrfs-snapper
# Get build deps
LOGNAME=root dh_make --createorig -y -l -p apt-btrfs-snapper_"$VERSION" || echo "dh-make: Ignoring Last Error"
apt-get build-dep ./ -y
# Build package
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/