libraries/libftdi1: Updated for version 1.5.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2021-01-02 08:16:29 +01:00 committed by Robby Workman
parent 86b82a27a5
commit 9560ca44db
2 changed files with 12 additions and 7 deletions

View File

@ -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

View File

@ -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"