aboutsummaryrefslogtreecommitdiff
path: root/misc/opencc/opencc.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-01-23 01:15:01 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2016-01-23 01:17:13 +0000
commitc3a249e7419fb491324d6b1785be434b311c1288 (patch)
treea865eebfa50fef69f7e70c2fbaad48bdab923788 /misc/opencc/opencc.SlackBuild
parentd23a81106f56f016a0614e09fa70519d74b11df8 (diff)
misc/opencc: Fixed alt tarball name, /usr/lib64 & MD5SUM.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'misc/opencc/opencc.SlackBuild')
-rw-r--r--misc/opencc/opencc.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/misc/opencc/opencc.SlackBuild b/misc/opencc/opencc.SlackBuild
index 20cc3826fe079..c46eb39e14054 100644
--- a/misc/opencc/opencc.SlackBuild
+++ b/misc/opencc/opencc.SlackBuild
@@ -23,7 +23,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=opencc
+SRCNAM=OpenCC
VERSION=${VERSION:-1.0.3}
+SRCVER=ver.$VERSION
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,9 +61,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf OpenCC-ver.$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/ver.$VERSION.tar.gz
-cd OpenCC-ver.$VERSION
+rm -rf $SRCNAM-$SRCVER
+tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz || tar xvf $CWD/$SRCVER.tar.gz
+cd $SRCNAM-$SRCVER
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -69,6 +71,8 @@ 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 {} \;
+sed -i -e "s/set (LIB_SUFFIX \"\")/set (LIB_SUFFIX \"$LIBDIRSUFFIX\")/" CMakeLists.txt
+
make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
make install DESTDIR=$PKG