Debian packaging: set Architecture to the target architecture

This commit is contained in:
Robur 2022-02-25 10:54:51 +00:00
parent 83daa044d5
commit 5f7e37fb4c

View file

@ -34,6 +34,9 @@ install -m 0644 $basedir/packaging/debian/changelog $debiandir/changelog
install -m 0644 $basedir/packaging/debian/copyright $debiandir/copyright install -m 0644 $basedir/packaging/debian/copyright $debiandir/copyright
install $basedir/packaging/debian/postinst $debiandir/postinst install $basedir/packaging/debian/postinst $debiandir/postinst
ARCH=$(dpkg-architecture -q DEB_TARGET_ARCH)
sed -i -e "s/^Architecture:.*/Architecture: ${ARCH}/" $debiandir/control
dpkg-deb --build $rootdir $basedir/builder-web.deb dpkg-deb --build $rootdir $basedir/builder-web.deb
echo 'bin: [ "builder-web.deb" ]' > $basedir/builder-web.install echo 'bin: [ "builder-web.deb" ]' > $basedir/builder-web.install
echo 'doc: [ "README.md" ]' >> $basedir/builder-web.install echo 'doc: [ "README.md" ]' >> $basedir/builder-web.install