Commit 8ad341e0 authored by Andreas Tille's avatar Andreas Tille
Browse files

Always use latest Standards-Version

parent 504e6ca9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -56,5 +56,13 @@ if echo "$PHOMEPAGE" | grep -q 'gitlab\.com' ; then
  echo "$PHOMEPAGE/tags?sort=updated_desc .*/archive/v?@ANY_VERSION@/${UNAME}[-v]*.*\.tar\.gz" >> watch
  sed -i -e "s/^\(Upstream-Name:\).*/\1 ${UNAME}/" -e "s?^\(Source:\).*?\1 ${PHOMEPAGE}?" copyright
fi

STANDARDSVERSION=$(LC_ALL=C apt-cache policy debian-policy | grep Candidate | sed 's/^ *Candidate: \([0-9]\.[0-9]\.[0-9]\).*/\1/')
if [ "$STANDARDSVERSION" = "" ] ; then
  echo "W: Failure detecting latest Standards-Version"
else
  sed -i "s/^Standards-Version:.*/Standards-Version: $STANDARDSVERSION/" control
fi

cd "$CURDIR"
mv "$PKG" "$PKG"_