Debian packaging: set Architecture to the target architecture
This commit is contained in:
parent
83daa044d5
commit
5f7e37fb4c
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue