misc/opencc: Fixed alt tarball name, /usr/lib64 & MD5SUM.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2016-01-23 01:15:01 +00:00
parent d23a81106f
commit c3a249e741
2 changed files with 8 additions and 4 deletions

View file

@ -23,7 +23,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=opencc PRGNAM=opencc
SRCNAM=OpenCC
VERSION=${VERSION:-1.0.3} VERSION=${VERSION:-1.0.3}
SRCVER=ver.$VERSION
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -59,9 +61,9 @@ set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf OpenCC-ver.$VERSION rm -rf $SRCNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/ver.$VERSION.tar.gz tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz || tar xvf $CWD/$SRCVER.tar.gz
cd OpenCC-ver.$VERSION cd $SRCNAM-$SRCVER
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ \( -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 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -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 CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
make install DESTDIR=$PKG make install DESTDIR=$PKG

View file

@ -2,7 +2,7 @@ PRGNAM="opencc"
VERSION="1.0.3" VERSION="1.0.3"
HOMEPAGE="http://byvoid.github.io/OpenCC/" HOMEPAGE="http://byvoid.github.io/OpenCC/"
DOWNLOAD="https://github.com/BYVoid/OpenCC/archive/ver.1.0.3.tar.gz" DOWNLOAD="https://github.com/BYVoid/OpenCC/archive/ver.1.0.3.tar.gz"
MD5SUM="1db89f0c6b2e39962464bda01de12017" MD5SUM="c196d6fe29d57b2efcc32e868f5ed21b"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""