libfprint/main.sh

22 lines
542 B
Bash
Raw Normal View History

2024-03-17 14:25:36 +01:00
#! /bin/bash
DEBIAN_FRONTEND=noninteractive
# Clone Upstream
2024-03-17 14:34:25 +01:00
git clone -b v1.94.7 https://gitlab.freedesktop.org/libfprint/libfprint ./libfprintd-2-2
cp -rvf ./debian ./libfprintd-2-2/
cd ./libfprintd-2-2/
for i in $(cat ../patches/series | grep -v '^#') ; do echo "Applying Patch: $i" && patch -Np1 -i ../patches/$i || bash -c "echo "Applying Patch $i Failed!" && exit 2"; done
2024-03-17 14:25:36 +01:00
# Get build deps
apt-get build-dep ./ -y
# Build package
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/