|
@@ -86,7 +86,8 @@ 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 |
|
|
ARCH=$(dpkg-architecture -qDEB_HOST_ARCH) |
|
|
|
|
|
|
|
|
export ARCH=$(dpkg-architecture -qDEB_HOST_ARCH) |
|
|
|
|
|
echo architecture $ARCH |
|
|
envsubst < control_template > DEBIAN/control |
|
|
envsubst < control_template > DEBIAN/control |
|
|
rm -rf usr |
|
|
rm -rf usr |
|
|
cd $here/wiringPi |
|
|
cd $here/wiringPi |
|
@@ -97,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 |
|
|
dpkg-name wiringPi.deb |
|
|
|
|
|
|
|
|
dpkg-name -o wiringPi.deb |
|
|
exit |
|
|
exit |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|