From 9560ca44dbb097eae6c9fbe9ed5ed11744f54580 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sat, 2 Jan 2021 08:16:29 +0100 Subject: [PATCH] libraries/libftdi1: Updated for version 1.5. Signed-off-by: Matteo Bernardini --- libraries/libftdi1/libftdi1.SlackBuild | 13 +++++++++---- libraries/libftdi1/libftdi1.info | 6 +++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/libraries/libftdi1/libftdi1.SlackBuild b/libraries/libftdi1/libftdi1.SlackBuild index 6ba1c561fe..b02bce3642 100644 --- a/libraries/libftdi1/libftdi1.SlackBuild +++ b/libraries/libftdi1/libftdi1.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libftdi1 -VERSION=${VERSION:-1.4} +VERSION=${VERSION:-1.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -77,11 +77,15 @@ cd build -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DSTATICLIBS:BOOL=OFF \ + -DFTDIPP=ON \ + -DDOCUMENTATION=ON \ -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG cd .. +# fix a wrong library name in the pkgconfig file +sed -i "s|libftdipp1|$PRGNAM|" $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/$PRGNAM.pc find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -89,16 +93,17 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING.* README.* LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -mv ./build/doc/html $PKG/usr/doc/$PRGNAM-$VERSION +mv ./build/doc/html $PKG/usr/doc/$PRGNAM-$VERSION rm -r $PKG/usr/share mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples cp -a examples/*.c examples/*.cpp python/examples/*.py ftdi_eeprom/example.conf \ $PKG/usr/doc/$PRGNAM-$VERSION/examples mv ./build/doc/man $PKG/usr -rm -f $PKG/usr/man/man3/*SBo* - +mv $PKG/usr/man/man3/{,ftdi_}deprecated.3 +mv $PKG/usr/man/man3/{,ftdi_}size_and_time.3 +rm -f $PKG/usr/man/man3/*{SBo,CMake}* find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done diff --git a/libraries/libftdi1/libftdi1.info b/libraries/libftdi1/libftdi1.info index 42543c4cab..26a3a68d0c 100644 --- a/libraries/libftdi1/libftdi1.info +++ b/libraries/libftdi1/libftdi1.info @@ -1,8 +1,8 @@ PRGNAM="libftdi1" -VERSION="1.4" +VERSION="1.5" HOMEPAGE="https://www.intra2net.com/en/developer/libftdi/download.php" -DOWNLOAD="https://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.4.tar.bz2" -MD5SUM="0c09fb2bb19a57c839fa6845c6c780a2" +DOWNLOAD="https://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.5.tar.bz2" +MD5SUM="f515d7d69170a9afc8b273e8f1466a80" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="confuse"