python-compute/packaging/build.sh

16 lines
631 B
Bash
Raw Normal View History

2023-11-23 02:34:02 +03:00
set -o errexit
set -o xtrace
export USER=build
export HOME=/mnt
export DEBFULLNAME='%placeholder%'
export DEBEMAIL='%placeholder%'
mkdir -p /mnt/build && cd /mnt/build
tar xf compute-*[.tar.gz]
cd compute-*[^.tar.gz]
sed -e "s%\.\./\.\.%$PWD%" -i ../docs/source/conf.py
dh_make --copyright gpl3 --yes --python --file ../compute-*[.tar.gz]
rm debian/*.ex debian/README.{Debian,source} debian/*.docs
sed -e 's/\* Initial release.*/\* This is the development build, see commits in upstream repo for info./' -i debian/changelog
cp -v ../../files/{control,rules,copyright,docs,compute.bash-completion} debian/
dpkg-buildpackage -us -uc