New package: WiringPi-0.0.20200408
This commit is contained in:
parent
ba57d39212
commit
9c92361e1b
|
@ -1270,6 +1270,8 @@ libcontainers.so rpi-userland-20170427_1
|
|||
libbrcmWFC.so rpi-userland-20180103_1
|
||||
libdebug_sym.so rpi-userland-20180103_1
|
||||
libdtovl.so rpi-userland-20180103_1
|
||||
libwiringPi.so libwiringPi-0.0.20200408_1
|
||||
libwiringPiDev.so libwiringPi-0.0.20200408_1
|
||||
liblockdev.so.1 lockdev-1.0.3_1
|
||||
libcec.so.4 libcec-4.0.2_1
|
||||
librump.so.0 netbsd-rumpkernel-20130321_1
|
||||
|
@ -1301,6 +1303,7 @@ libunwind-mips.so.8 libunwind-1.1_4
|
|||
libunwind-aarch64.so.8 libunwind-1.2rc1_1
|
||||
libunwind-ppc32.so.8 libunwind-1.2.1_1
|
||||
libunwind-ppc64.so.8 libunwind-1.2.1_1
|
||||
libunwind-setjmp.so.0 libunwind-1.4_1
|
||||
libmicrohttpd.so.12 libmicrohttpd-0.9.48_1
|
||||
libmicrodns.so.0 libmicrodns-0.1.0_1
|
||||
libgit2.so.28 libgit2-0.28.0_1
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
WiringPi
|
|
@ -0,0 +1 @@
|
|||
WiringPi
|
|
@ -0,0 +1,112 @@
|
|||
# Template file for 'WiringPi'
|
||||
pkgname=WiringPi
|
||||
version=0.0.20200408
|
||||
revision=1
|
||||
_githash=50b7c5ed7d238a637db7d9c73978466eb022a8de
|
||||
_sover=2.60
|
||||
build_style=meta
|
||||
wrksrc="${pkgname}-${_githash}"
|
||||
archs="arm*"
|
||||
depends="libwiringPi-${version}_${revision}
|
||||
libwiringPi-dev-${version}_${revision}
|
||||
WiringPi-gpio-${version}_${revision}
|
||||
WiringPi-examples-${version}_${revision}"
|
||||
short_desc="GPIO Interface library for the Raspberry Pi"
|
||||
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||
license="LGPL-3.0-or-later"
|
||||
homepage="http://wiringpi.com/"
|
||||
distfiles="https://github.com/WiringPi/WiringPi/archive/${_githash}.tar.gz"
|
||||
checksum=ba83290d3c5e4cd3fd470321ab2a85133334014532e5f275ef4d699ccaf72fc5
|
||||
|
||||
CFLAGS="-Wno-unused-result -I. -I../wiringPi -I../devLib"
|
||||
|
||||
do_configure() {
|
||||
find -name Makefile -exec sed -i "{}" \
|
||||
-e "s;^DEBUG;#DEBUG;" \
|
||||
-e "s;^CC;#CC;" \
|
||||
-e "s;^INCLUDE;#INCLUDE;" \
|
||||
-e "s;^DEFS;#DEFS;" \
|
||||
-e "s;^CFLAGS;#CFLAGS;" \
|
||||
-e "s;^LDFLAGS;#LDFLAGS;" \
|
||||
-e "s;^LIBS;#LIBS;" \
|
||||
\;
|
||||
}
|
||||
|
||||
do_build() {
|
||||
msg_normal "Building wiringPi ...\n"
|
||||
make ${makejobs} -C wiringPi all
|
||||
ln -srv wiringPi/libwiringPi.so.${_sover} \
|
||||
wiringPi/libwiringPi.so
|
||||
|
||||
msg_normal "Building devLib ...\n"
|
||||
export LIBS+=" -Wl,-L,../wiringPi -Wl,-l,wiringPi"
|
||||
make ${makejobs} -C devLib all
|
||||
ln -srv devLib/libwiringPiDev.so.${_sover} \
|
||||
devLib/libwiringPiDev.so
|
||||
|
||||
msg_normal "Building gpio ...\n"
|
||||
export LIBS+=" -lcrypt -lrt -lm"
|
||||
export LIBS+=" -Wl,-L,../devLib -Wl,-l,wiringPiDev"
|
||||
make ${makejobs} V=1 -C gpio all
|
||||
}
|
||||
|
||||
do_install() {
|
||||
export LDCONFIG="/usr/bin/true"
|
||||
export PREFIX="/usr"
|
||||
|
||||
# Temporary symlink /usr/lib -> /lib for install
|
||||
ln -srv ${DESTDIR}/usr/lib ${DESTDIR}/lib
|
||||
make DESTDIR="${DESTDIR}" -C wiringPi install
|
||||
make DESTDIR="${DESTDIR}" -C devLib install
|
||||
rm -v ${DESTDIR}/lib
|
||||
|
||||
# Fix borked symlinks to *.so files
|
||||
ln -srvf ${DESTDIR}/usr/lib/libwiringPi.so.${_sover} \
|
||||
${DESTDIR}/usr/lib/libwiringPi.so
|
||||
|
||||
ln -srvf ${DESTDIR}/usr/lib/libwiringPiDev.so.${_sover} \
|
||||
${DESTDIR}/usr/lib/libwiringPiDev.so
|
||||
|
||||
# Install gpio
|
||||
vbin gpio/gpio
|
||||
vman gpio/gpio.1
|
||||
|
||||
# Install examples
|
||||
vmkdir usr/share/examples
|
||||
vcopy examples usr/share/examples/WiringPi
|
||||
}
|
||||
|
||||
libwiringPi_package() {
|
||||
short_desc+=" - libraries"
|
||||
pkg_install() {
|
||||
vmove usr/lib/libwiringPi.so.${_sover}
|
||||
vmove usr/lib/libwiringPiDev.so.${_sover}
|
||||
}
|
||||
}
|
||||
|
||||
libwiringPi-dev_package() {
|
||||
short_desc+=" - development files"
|
||||
depends="libwiringPi-${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove "usr/lib/*.so"
|
||||
}
|
||||
}
|
||||
|
||||
WiringPi-gpio_package() {
|
||||
short_desc+=" - gpio tool"
|
||||
pkg_install() {
|
||||
vmove usr/bin
|
||||
vmove usr/share/man
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
WiringPi-examples_package() {
|
||||
short_desc+=" - examples"
|
||||
archs="noarch"
|
||||
pkg_install() {
|
||||
vmove usr/share/examples
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
WiringPi
|
|
@ -0,0 +1 @@
|
|||
WiringPi
|
Loading…
Reference in New Issue