aboutsummaryrefslogtreecommitdiff
path: root/libraries/libftdi1
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-01-02 08:16:29 +0100
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:38:49 -0500
commit9560ca44dbb097eae6c9fbe9ed5ed11744f54580 (patch)
tree636435f89ca262714a4255c6a66a1d90c15dcb66 /libraries/libftdi1
parent86b82a27a5dc1bdf0e29c1886b0acc3bf898f2e9 (diff)
libraries/libftdi1: Updated for version 1.5.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/libftdi1')
-rw-r--r--libraries/libftdi1/libftdi1.SlackBuild13
-rw-r--r--libraries/libftdi1/libftdi1.info6
2 files changed, 12 insertions, 7 deletions
diff --git a/libraries/libftdi1/libftdi1.SlackBuild b/libraries/libftdi1/libftdi1.SlackBuild
index 6ba1c561fe9aa..b02bce36425ff 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 42543c4cab00c..26a3a68d0cc67 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"