aboutsummaryrefslogtreecommitdiff
path: root/libraries/libuchardet/libuchardet.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libuchardet/libuchardet.SlackBuild')
-rw-r--r--libraries/libuchardet/libuchardet.SlackBuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/libraries/libuchardet/libuchardet.SlackBuild b/libraries/libuchardet/libuchardet.SlackBuild
index c03264c73ab90..f398f3b5e4561 100644
--- a/libraries/libuchardet/libuchardet.SlackBuild
+++ b/libraries/libuchardet/libuchardet.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
-#
+
# Slackware build script for libuchardet.
-#
+
# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libuchardet
-VERSION=${VERSION:-0.0.1}
+VERSION=${VERSION:-0.0.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -57,12 +57,13 @@ fi
set -e
SRCNAM="uchardet"
+SRCVER="v0.0.5"
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
rm -rf $TMP/$PRGNAM-$VERSION
cd $TMP
-tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+tar xvf $CWD/$SRCVER.tar.gz
mv $SRCNAM-$VERSION $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
@@ -72,12 +73,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -Np1 < $CWD/uchardet-0.0.5-fix-ASCII-detection.patch
+patch -Np1 < $CWD/uchardet-0.0.5-use-proper-package-name.patch
+
cmake \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib${LIBDIRSUFFIX} \
.
make
+#make test
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -89,7 +94,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
rm -rf $PKG/usr/share
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING INSTALL $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING INSTALL README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-SlackBuild
mkdir -p $PKG/install