Rework to build by autoconf/automake and new Debian scripts
Building in local machine:
$ sh autogen.sh
$ ./configure
$ make
$ sudo make install
Building Debian package:
$ debuild -uc -us -b
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I76faa07c1586658d053a3e260ea231a19392f792
This commit is contained in:
6
debian/changelog
vendored
6
debian/changelog
vendored
@@ -1,3 +1,9 @@
|
||||
odroid-wiringpi (3.12) stable; urgency=medium
|
||||
|
||||
* Rework Debian package scripts
|
||||
|
||||
-- Dongjin Kim <tobetter@gmail.com> Wed, 19 Jan 2022 08:57:34 +0000
|
||||
|
||||
odroid-wiringpi (9:3.9) stable; urgency=medium
|
||||
|
||||
* WiringPi: Android: Add odroidhc4.c to compile on the android platform
|
||||
|
||||
2
debian/compat
vendored
2
debian/compat
vendored
@@ -1 +1 @@
|
||||
10
|
||||
13
|
||||
|
||||
40
debian/control
vendored
40
debian/control
vendored
@@ -4,25 +4,41 @@ Priority: optional
|
||||
Maintainer: Deokgyu Yang <secugyu@gmail.com>, Steve Jeong <jkhpro@gmail.com>
|
||||
Standards-Version: 3.8.0
|
||||
Homepage: https://wiki.odroid.com
|
||||
Build-Depends: debhelper (>= 10)
|
||||
Build-Depends: debhelper (>= 10),
|
||||
libc6-dev,
|
||||
libcrypt-dev,
|
||||
libgpiod-dev,
|
||||
texlive-latex-base,
|
||||
texlive-fonts-recommended
|
||||
|
||||
Package: odroid-wiringpi
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, libwiringpi2 (= ${binary:Version})
|
||||
Description: gpio utility for ODROID
|
||||
The wiringPi gpio command line utility, for GPIO access on a
|
||||
ODROID from the command line.
|
||||
|
||||
Package: libwiringpi2
|
||||
Section: libs
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, libgpiod-dev
|
||||
Description: GPIO libraries for ODROID (runtime).
|
||||
Runtime for the popular wiringPi library.
|
||||
|
||||
Package: odroid-wiringpi
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, libwiringpi2 (= ${binary:Version})
|
||||
Description: gpio utility for ODROID
|
||||
The wiringPi gpio command line utility, for GPIO access on a
|
||||
ODROID from the command line.
|
||||
Runtime for the popular wiringPi library.
|
||||
|
||||
Package: libwiringpi-dev
|
||||
Architecture: any
|
||||
Depends: libc6-dev, ${misc:Depends}, libwiringpi2 (= ${binary:Version}), odroid-wiringpi (= ${binary:Version}),
|
||||
Depends: ${misc:Depends},
|
||||
libc6-dev,
|
||||
libgpiod-dev,
|
||||
libwiringpi2 (= ${binary:Version}),
|
||||
odroid-wiringpi (= ${binary:Version})
|
||||
Description: GPIO development library for ODROID
|
||||
Development libraries to allow GPIO access on a ODROID from C
|
||||
and C++ programs.
|
||||
Development libraries to allow GPIO access on a ODROID from C
|
||||
and C++ programs.
|
||||
|
||||
Package: wiringpi-examples
|
||||
Architecture: any
|
||||
Depends: libwiringpi-dev
|
||||
Description: GPIO development library examples for ODROID
|
||||
Development libraries to allow GPIO access on a ODROID from C
|
||||
and C++ programs.
|
||||
|
||||
14
debian/libwiringpi-dev.install
vendored
14
debian/libwiringpi-dev.install
vendored
@@ -1,3 +1,11 @@
|
||||
debian/tmp/usr/include
|
||||
debian/tmp/usr/lib/*.so
|
||||
examples usr/share/doc/libwiringpi-dev
|
||||
debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/libwiringPi.a usr/lib/${DEB_HOST_MULTIARCH}
|
||||
debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/libwiringPi.la usr/lib/${DEB_HOST_MULTIARCH}
|
||||
debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/libwiringPiDev.a usr/lib/${DEB_HOST_MULTIARCH}
|
||||
debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/libwiringPiDev.la usr/lib/${DEB_HOST_MULTIARCH}
|
||||
|
||||
debian/tmp/usr/include/wiringpi2/*.h usr/include/wiringpi2/
|
||||
|
||||
debian/tmp/usr/lib/aarch64-linux-gnu/pkgconfig/libwiringpi2.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/
|
||||
|
||||
README.TXT usr/share/doc/wiringpi
|
||||
People usr/share/doc/wiringpi
|
||||
|
||||
5
debian/libwiringpi2.install
vendored
5
debian/libwiringpi2.install
vendored
@@ -1 +1,4 @@
|
||||
debian/tmp/usr/lib/lib*.so.*
|
||||
debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/libwiringPi.so* usr/lib/${DEB_HOST_MULTIARCH}
|
||||
debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/libwiringPiDev.so* usr/lib/${DEB_HOST_MULTIARCH}
|
||||
debian/tmp/usr/sbin/gpio
|
||||
debian/tmp/usr/sbin/wiringPiD
|
||||
|
||||
6
debian/odroid-wiringpi.install
vendored
6
debian/odroid-wiringpi.install
vendored
@@ -1,5 +1 @@
|
||||
debian/tmp/usr/bin
|
||||
debian/tmp/usr/man usr/share
|
||||
README.TXT usr/share/doc/wiringpi
|
||||
People usr/share/doc/wiringpi
|
||||
udev/rules.d tmp/odroid-wiringpi
|
||||
udev/rules.d/* usr/lib/udev/rules.d/
|
||||
|
||||
38
debian/rules
vendored
Normal file → Executable file
38
debian/rules
vendored
Normal file → Executable file
@@ -1,40 +1,6 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
.PHONY: build
|
||||
|
||||
VERSION:=$(shell cat VERSION)
|
||||
export VERSION
|
||||
|
||||
soname:=$(shell echo $${VERSION%%.*})
|
||||
WIRINGPI_SONAME_SUFFIX:=.$(soname)
|
||||
export soname
|
||||
export WIRINGPI_SONAME_SUFFIX
|
||||
|
||||
build:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_configure:
|
||||
|
||||
override_dh_prep:
|
||||
dh_prep -Xdebian/tmp
|
||||
|
||||
dirs:
|
||||
dh_installdirs -A
|
||||
mkdir debian/tmp
|
||||
set -e; for p in `dh_listpackages`; do \
|
||||
(cd debian/$$p; find -type d) | \
|
||||
(cd debian/tmp; xargs mkdir -p) \
|
||||
done
|
||||
|
||||
override_dh_clean:
|
||||
dh_clean
|
||||
WIRINGPI_SUDO= bash -xe ./build clean
|
||||
|
||||
override_dh_auto_build: dirs
|
||||
V=1 LDCONFIG=: WIRINGPI_SUDO= WIRINGPI_SUID=0 \
|
||||
DESTDIR=`pwd`/debian/tmp/usr \
|
||||
PREFIX= WIRINGPI_SUDO= \
|
||||
bash -xe ./build
|
||||
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
||||
|
||||
%:
|
||||
dh $@
|
||||
dh $@ --with autoreconf
|
||||
|
||||
1
debian/wiringpi-examples.install
vendored
Normal file
1
debian/wiringpi-examples.install
vendored
Normal file
@@ -0,0 +1 @@
|
||||
examples/* usr/lib/${DEB_HOST_MULTIARCH}/wiringpi/examples/
|
||||
Reference in New Issue
Block a user