diff options
author | firebird <firebird209@gmail.com> | 2013-12-02 08:43:39 +0700 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2013-12-14 10:53:02 -0600 |
commit | 7e571c795647cb0d8bf57dc954a21defccd867b5 (patch) | |
tree | c639558a005bfed7611286f75ec7349bef3f9ced /network/weechat/weechat.SlackBuild | |
parent | 0132765958c9f231beb1f05389a1088ec26719be (diff) |
network/weechat: Updated for version 0.4.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/weechat/weechat.SlackBuild')
-rw-r--r-- | network/weechat/weechat.SlackBuild | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/network/weechat/weechat.SlackBuild b/network/weechat/weechat.SlackBuild index ca4660b5e160..423a99dd981d 100644 --- a/network/weechat/weechat.SlackBuild +++ b/network/weechat/weechat.SlackBuild @@ -2,9 +2,27 @@ # Originally written by hollywoodb (hollywoodb@fastmail.fm) # Maintained by sero (firebird209 at gmail dot com) +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=weechat -VERSION=${VERSION:-0.4.1} +VERSION=${VERSION:-0.4.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -53,19 +71,19 @@ find -L . \ mkdir build cd build cmake \ - -DPREFIX=/usr \ - -DLIBDIR=/usr/lib${LIBDIRSUFFIX} \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_C_FLAGS="$SLKCFLAGS" \ - .. + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DLIB_SUFFIX=${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 .. -# Make the binary and manpage required for this a bit more obvious -( cd $PKG/usr/bin ; ln -s weechat-curses weechat ) +# Weechat still doesn't honour MANDIR, so let's fix this here mv $PKG/usr/share/man $PKG/usr/man/ -( cd $PKG/usr/man/man1 ; ln -s weechat-curses.1 weechat.1 ) find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |