apt-btrfs-snapper/main.sh

30 lines
588 B
Bash
Raw Normal View History

2024-10-19 16:15:57 +02:00
#! /bin/bash
set -e
. ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
VERSION="1.0"
# Clone Upstream
2024-10-19 16:19:21 +02:00
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
2024-10-19 16:15:57 +02:00
# Get build deps
2024-10-19 16:19:21 +02:00
LOGNAME=root dh_make --createorig -y -l -p apt-btrfs-snapper_"$VERSION" || echo "dh-make: Ignoring Last Error"
2024-10-19 16:15:57 +02:00
apt-get build-dep ./ -y
# Build package
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/