2023-09-29 12:54:49 +03:00
|
|
|
#! /bin/bash
|
|
|
|
|
2023-03-04 15:48:54 +03:00
|
|
|
# Clone Upstream
|
2023-05-27 10:49:25 +03:00
|
|
|
git clone https://github.com/medusalix/xone
|
2023-03-04 15:48:54 +03:00
|
|
|
cp -rvf ./debian ./xone
|
|
|
|
cd ./xone
|
|
|
|
|
2023-09-29 12:54:49 +03:00
|
|
|
for i in ../patches/* ; do patch -Np1 -i $i; done
|
|
|
|
|
2023-03-04 15:48:54 +03:00
|
|
|
# Get build deps
|
2023-06-16 18:44:27 +01:00
|
|
|
apt-get install dh-make -y
|
2023-03-04 15:48:54 +03:00
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
2023-09-29 12:54:49 +03:00
|
|
|
dpkg-buildpackage --no-sign
|
2023-03-04 15:48:54 +03:00
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|