diff --git a/templates/packagebuild.xml b/templates/packagebuild.xml index 5d071a7..a190582 100644 --- a/templates/packagebuild.xml +++ b/templates/packagebuild.xml @@ -44,9 +44,9 @@ mkdir {{ NAME }}; mv -v debian {{ NAME }}; git clone {{ UPSTREAM_URL }} upstream; export VERSION="$(head -1 {{ NAME }}/debian/changelog | sed -n '/(/,/)/{:a; $!N; /)/!{$!ba}; s/.*(\([^)]*\)).*/\1/p}' | cut -d '-' -f1)+git$(date +'%Y%m%d%H%M')"; -export CHANGELOG_ENTRY="{{ NAME }} ($VERSION-0ubuntu1~ppa1) {{ RELEASE }}; urgency=low\n\n * CI upload.\n\n – Lugito <info@lubuntu.me> $(date +'%a, %d %b %Y %T %z')\n" -sed -i "1i$CHANGELOG_ENTRY" {{ NAME }}/debian/changelog; -sed -i "s/– Lugito/–– Lugito/g" {{ NAME }}/debian/changelog; +export DEBFULLNAME="Lugito" +export DEBEMAIL="info@lubuntu.me" +dch --create --distribution {{ RELEASE }} --package "{{ NAME }}" --newversion $VERSION "CI upload." tar cvf {{ NAME }}_$VERSION.orig.tar upstream; gzip {{ NAME }}_$VERSION.orig.tar; (cd {{ NAME }}; debuild -S -d -sa -k234778F3D70C2B9785EB7426E7BE29862BE6F574; dput {{ UPLOAD_TARGET }} ../{{ NAME }}_$VERSION-0ubuntu1~ppa1_source.changes)