diff options
Diffstat (limited to 'libraries/libftdi1/libftdi1.SlackBuild')
-rw-r--r-- | libraries/libftdi1/libftdi1.SlackBuild | 13 |
1 files changed, 9 insertions, 4 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 |