wayshot/main.sh

28 lines
592 B
Bash
Raw Normal View History

2023-07-06 18:59:29 +02:00
#! /bin/bash
2024-07-26 20:53:19 +02:00
set -e
VERSION="1.3.1.git"
source ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2023-07-06 18:59:29 +02:00
# Clone Upstream
2024-07-26 20:53:19 +02:00
#git clone https://github.com/waycrate/wayshot.git --recurse-submodules -b "$VERSION"
2023-07-06 19:00:15 +02:00
git clone https://github.com/waycrate/wayshot.git --recurse-submodules
2024-07-26 20:53:19 +02:00
cp -rvf ./debian ./wayshot
cd ./wayshot
2023-07-06 18:59:29 +02:00
# Get build deps
apt-get build-dep ./ -y
# Build package
2024-07-26 20:53:19 +02:00
LOGNAME=root dh_make --createorig -y -l -p wayshot_"$VERSION" || echo "dh-make: Ignoring Last Error"
2023-07-06 18:59:29 +02:00
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/