diff options
Diffstat (limited to 'libraries/pthsem/pthsem.SlackBuild')
-rw-r--r-- | libraries/pthsem/pthsem.SlackBuild | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/libraries/pthsem/pthsem.SlackBuild b/libraries/pthsem/pthsem.SlackBuild index b1d78cc8f4..81dd96247c 100644 --- a/libraries/pthsem/pthsem.SlackBuild +++ b/libraries/pthsem/pthsem.SlackBuild @@ -5,7 +5,7 @@ # Written by V'yacheslav Stetskevych PRGNAM=pthsem -VERSION=${VERSION:-2.0.7} +VERSION=${VERSION:-2.0.8} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -32,7 +32,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/${PRGNAM}_$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -41,10 +41,6 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Apply the patch to use the monotonic clock, for eibd to work correctly -# after a date/time change. -patch -p1 < $CWD/0001-Use-monotonic-clock-for-pthsem.patch - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -58,35 +54,17 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-static=no \ --enable-pthread=no -# Edit the Makefile to enable compilation with the monotonic clock patch. -sed 's/-ldl/-ldl -lrt/' Makefile > Makefile.sed -mv Makefile.sed Makefile - make make test -make install DESTDIR=$PKG - -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null || true -) +make install-strip DESTDIR=$PKG ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; ) -# Edit the output of pthsem-config to let eibd compile against modified pthsem. -( cd $PKG/usr/bin - sed 's/-lpthsem/-lpthsem -lrt/' pthsem-config > pthsem-config.sed - mv pthsem-config.sed pthsem-config - chmod 755 pthsem-config -) - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a ANNOUNCE AUTHORS COPYING HACKING HISTORY INSTALL NEWS PORTING \ - README SUPPORT TESTS THANKS USERS $PKG/usr/doc/$PRGNAM-$VERSION + README SUPPORT TESTS THANKS USERS ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |