17 lines
653 B
Bash
17 lines
653 B
Bash
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,install} debian/
|
|
mv ../compute.bash-completion debian/
|
|
dpkg-buildpackage -us -uc
|