network/weechat: Updated for new maintainer and version 1.7.

Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
This commit is contained in:
Benjamin Trigona-Harany 2017-02-26 15:06:24 -08:00 committed by Willy Sudiarto Raharjo
parent afcf239f0f
commit e22a108422
2 changed files with 12 additions and 21 deletions

View file

@ -2,6 +2,7 @@
# Originally written by hollywoodb (hollywoodb@fastmail.fm)
# Maintained by sero (firebird209 at gmail dot com)
# Maintained by Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -22,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=weechat
VERSION=${VERSION:-1.5}
VERSION=${VERSION:-1.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -39,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -73,27 +74,17 @@ cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DLIBDIR=/usr/lib${LIBDIRSUFFIX} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMAN_INSTALL_DIR=/usr/man \
-DENABLE_MAN=ON \
-DCMAKE_BUILD_TYPE=Release ..
make VERBOSE=1
make install DESTDIR=$PKG
cd ..
# Weechat still doesn't honour MANDIR, so let's fix this here
mv $PKG/usr/share/man $PKG/usr/man/
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS.asciidoc COPYING ChangeLog.asciidoc README.asciidoc $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS.adoc COPYING ChangeLog.adoc README.adoc ReleaseNotes.adoc $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,10 +1,10 @@
PRGNAM="weechat"
VERSION="1.5"
VERSION="1.7"
HOMEPAGE="http://www.weechat.org"
DOWNLOAD="http://weechat.org/files/src/weechat-1.5.tar.bz2"
MD5SUM="fdf901d70234e7a6335afd5a16e9d42b"
DOWNLOAD="http://weechat.org/files/src/weechat-1.7.tar.bz2"
MD5SUM="593e836e164e75520cbf0442154e59d6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="firebird"
EMAIL="firebird209@gmail.com"
MAINTAINER="Benjamin Trigona-Harant"
EMAIL="slackbuilds@jaxartes.net"