Merge pull request #193 from WiringPi/arm64

Creating correct deb package for arm64
This commit is contained in:
Manfred Wallner
2024-03-02 20:58:58 +01:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

5
build
View File

@@ -86,6 +86,9 @@ if [ x$1 = "xdebian" ]; then
here=`pwd` here=`pwd`
deb_destdir=${here}/debian-template/wiringPi deb_destdir=${here}/debian-template/wiringPi
cd debian-template/wiringPi cd debian-template/wiringPi
export ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
echo architecture $ARCH
envsubst < control_template > DEBIAN/control
rm -rf usr rm -rf usr
cd $here/wiringPi cd $here/wiringPi
make install-deb DEB_DESTDIR=${deb_destdir} make install-deb DEB_DESTDIR=${deb_destdir}
@@ -95,7 +98,7 @@ if [ x$1 = "xdebian" ]; then
make install-deb INCLUDE='-I../wiringPi -I../devLib' LDFLAGS=-L../debian-template/wiringPi/usr/lib DEB_DESTDIR=${deb_destdir} make install-deb INCLUDE='-I../wiringPi -I../devLib' LDFLAGS=-L../debian-template/wiringPi/usr/lib DEB_DESTDIR=${deb_destdir}
cd $here/debian-template cd $here/debian-template
fakeroot dpkg-deb --build wiringPi fakeroot dpkg-deb --build wiringPi
mv wiringPi.deb wiringpi-`cat $here/VERSION`-1.deb dpkg-name -o wiringPi.deb
exit exit
fi fi

View File

@@ -2,7 +2,7 @@ Package: wiringpi
Version: 3.0 Version: 3.0
Section: libraries Section: libraries
Priority: optional Priority: optional
Architecture: armhf Architecture: $ARCH
Depends: libc6 Depends: libc6
Maintainer: Grazer Computer Club - GC2 <wiringpi@gc2.at> Maintainer: Grazer Computer Club - GC2 <wiringpi@gc2.at>
Uploaders: Grazer Computer Club - GC2 <wiringpi@gc2.at> Uploaders: Grazer Computer Club - GC2 <wiringpi@gc2.at>