wiringPi: Prepare to distribute as debian package

Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
This commit is contained in:
Joshua Yang
2019-07-16 18:08:16 +09:00
parent 8140e5ad84
commit 41a423e5d3
16 changed files with 58 additions and 35 deletions

12
newVersion Normal file → Executable file
View File

@@ -30,18 +30,18 @@ vMaj=`cut -d. -f1 VERSION`
vMin=`cut -d. -f2 VERSION`
echo "#define VERSION \"`cat VERSION`\"" > version.h
echo "#define VERSION_MAJOR $vMaj" >> version.h
echo "#define VERSION_MINOR $vMin" >> version.h
echo "#define VERSION_MINOR \"$vMin\"" >> version.h
rm -f debian-template/wiringPi/DEBIAN/control
cat > debian-template/wiringPi/DEBIAN/control <<EOF
Package: wiringpi
Version: `cat VERSION`
Package: odroid-wiringpi
Version: $(cat VERSION)
Section: libraries
Priority: optional
Architecture: armhf
Architecture: arm64
Depends: libc6
Maintainer: Gordon Henderson <projects@drogon.net>
Maintainer: Joshua Yang <joshua.yang@hardkernel.com>
Description: The wiringPi libraries, headers and gpio command
Libraries to allow GPIO access on a Raspberry Pi from C and C++
Libraries to allow GPIO access on a ODROID from C and C++
and BASIC programs as well as from the command-line
EOF