summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/libpri/libpri.SlackBuild8
1 files changed, 2 insertions, 6 deletions
diff --git a/libraries/libpri/libpri.SlackBuild b/libraries/libpri/libpri.SlackBuild
index dffcdc9fea..eb15071c17 100644
--- a/libraries/libpri/libpri.SlackBuild
+++ b/libraries/libpri/libpri.SlackBuild
@@ -61,12 +61,8 @@ patch -p1 < $CWD/libpri-1.4.10.1-add_extra_cflags.patch
make libdir=/usr/lib${LIBDIRSUFFIX} EXTRA_CFLAGS="$SLKCFLAGS"
make libdir=/usr/lib${LIBDIRSUFFIX} install DESTDIR=$PKG
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
-)
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/install $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog LICENSE README TODO $PKG/usr/doc/$PRGNAM-$VERSION/