summaryrefslogtreecommitdiff
path: root/network/weechat/weechat.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/weechat/weechat.SlackBuild')
-rw-r--r--network/weechat/weechat.SlackBuild36
1 files changed, 27 insertions, 9 deletions
diff --git a/network/weechat/weechat.SlackBuild b/network/weechat/weechat.SlackBuild
index ca4660b5e1..423a99dd98 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