diff options
Diffstat (limited to 'libraries/libnfs/libnfs.SlackBuild')
-rw-r--r-- | libraries/libnfs/libnfs.SlackBuild | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libraries/libnfs/libnfs.SlackBuild b/libraries/libnfs/libnfs.SlackBuild index 0968f6984e2a..4148709094f8 100644 --- a/libraries/libnfs/libnfs.SlackBuild +++ b/libraries/libnfs/libnfs.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libnfs -VERSION=${VERSION:-1.6.0} +VERSION=${VERSION:-1.8.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,9 +59,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$PRGNAM-$VERSION chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -69,9 +69,6 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Fix pkg-config file. -sed -i 's|@LIBNFS_PC_REQ_PRIVATE@||' $PRGNAM.pc.in - ./bootstrap CFLAGS="$SLKCFLAGS" \ @@ -89,6 +86,9 @@ make install DESTDIR=$PKG 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 +# Fix pkg-config file. +sed -i 's|@LIBNFS_PC_REQ_PRIVATE@||' $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/$PRGNAM.pc + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |