summaryrefslogtreecommitdiff
path: root/libraries/libviper
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libviper')
-rw-r--r--libraries/libviper/libviper.SlackBuild24
-rw-r--r--libraries/libviper/libviper.info4
2 files changed, 14 insertions, 14 deletions
diff --git a/libraries/libviper/libviper.SlackBuild b/libraries/libviper/libviper.SlackBuild
index ffdc7ae14f..f8f5a1fdd8 100644
--- a/libraries/libviper/libviper.SlackBuild
+++ b/libraries/libviper/libviper.SlackBuild
@@ -2,7 +2,7 @@
# SlackBuild script for libviper.
#
-# Copyright 2009 Pierre Cazenave <pwcazenave {at} gmail [dot] com>
+# Copyright 2009 Pierre Cazenave <email removed>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,6 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Previously maintained by Gerardo Zamudio.
+# Now maintained by B. Watson <yalhcru@gmail.com>.
+
+# 20170825 bkw:
+# - take over maintenance.
+# - don't install useless INSTALL in doc dir.
+# - simplify script a bit.
+
PRGNAM=libviper
VERSION=${VERSION:-1.4.6}
BUILD=${BUILD:-1}
@@ -63,28 +71,20 @@ rm -rf $PRGNAM
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+chmod 644 *
# patch the Makefile with a custom patch to correct hard-coded paths
patch -p0 < $CWD/libviper-1.4.6-Makefile.patch
make CFLAGS="$SLKCFLAGS"
+strip $PRGNAM.so
make install prefix=$PKG/usr libdir=$PKG/usr/lib${LIBDIRSUFFIX}
-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/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGELOG INSTALL LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGELOG LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG
-find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/libraries/libviper/libviper.info b/libraries/libviper/libviper.info
index d17eb4842a..bd0ab11386 100644
--- a/libraries/libviper/libviper.info
+++ b/libraries/libviper/libviper.info
@@ -6,5 +6,5 @@ MD5SUM="6b78e595b4e494976acd6f99fc8fdc7e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Gerardo Zamudio"
-EMAIL="gerardo.zamudio@linux.com"
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"