aboutsummaryrefslogtreecommitdiff
path: root/libraries/libftdi1/libftdi1.SlackBuild
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/libftdi1.SlackBuild
parent86b82a27a5dc1bdf0e29c1886b0acc3bf898f2e9 (diff)
libraries/libftdi1: Updated for version 1.5.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/libftdi1/libftdi1.SlackBuild')
-rw-r--r--libraries/libftdi1/libftdi1.SlackBuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/libraries/libftdi1/libftdi1.SlackBuild b/libraries/libftdi1/libftdi1.SlackBuild
index 6ba1c561fe9a..b02bce36425f 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