From e7e790eef75ff55593fe50405b0e3d6078c7d8c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Fonzo?= Date: Wed, 2 Oct 2019 18:48:57 -0300 Subject: [PATCH] recipes: networking/weechat: added version 2.6 --- recipes/00-core.order | 1 + recipes/networking/weechat/post-install | 4 ++ recipes/networking/weechat/recipe | 113 ++++++++++++++++++++++++++++++++ sources/SOURCELIST.txt | 1 + sources/weechat-2.6.tar.bz2.sha256 | 1 + 5 files changed, 120 insertions(+) create mode 100644 recipes/networking/weechat/post-install create mode 100644 recipes/networking/weechat/recipe create mode 100644 sources/weechat-2.6.tar.bz2.sha256 diff --git a/recipes/00-core.order b/recipes/00-core.order index 4ebbbf28..a75a94e2 100644 --- a/recipes/00-core.order +++ b/recipes/00-core.order @@ -271,6 +271,7 @@ networking/wpa_supplicant: daemons/dbus networking/connman: daemons/dbus libs/glib2 networking/alpine: dict/aspell networking/ca-certificates networking/lynx: +networking/weechat: # Disk quota support tools/quota: networking/libnl3 diff --git a/recipes/networking/weechat/post-install b/recipes/networking/weechat/post-install new file mode 100644 index 00000000..2ec8a2f1 --- /dev/null +++ b/recipes/networking/weechat/post-install @@ -0,0 +1,4 @@ + +echo "Updating ICON cache: gtk-update-icon-cache -q -f -i usr/share/icons/hicolor" +gtk-update-icon-cache -q -f -i usr/share/icons/hicolor + diff --git a/recipes/networking/weechat/recipe b/recipes/networking/weechat/recipe new file mode 100644 index 00000000..6d3299fb --- /dev/null +++ b/recipes/networking/weechat/recipe @@ -0,0 +1,113 @@ +# Build recipe for weechat. +# +# Copyright (c) 2019 Matias Fonzo, . +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +program=weechat +version=2.6 +release=1 + +# Set 'outdir' for a nice and well-organized output directory +outdir="${outdir}/${arch}/networking" + +tarname=${program}-${version}.tar.bz2 + +# Remote source(s) +fetch=http://weechat.org/files/src/$tarname + +homepage=http://weechat.org +license=GPLv3+ + +description=" +WeeChat is a fast, light and extensible chat client. + +WeeChat (Wee Enhanced Environment for Chat) is a free chat client, +fast and light, designed for many operating systems. It is highly +customizable and extensible with scripts. + +For more information, visit: $homepage +" + +# Source documentation +docs=COPYING +docsdir="${docdir}/${program}-${version}" + +build() +{ + set -e + + unpack "${tardir}/$tarname" + + cd "$srcdir" + + # Set sane permissions + chmod -R u+w,go-w,a+rX-s . + + mkdir -p BUILD + cd BUILD + + # Note about NLS: it does not work with gettex-tiny, currently. + + cmake \ + -DCMAKE_C_FLAGS:STRING="$QICFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$QICXXFLAGS" \ + -DCMAKE_EXE_LINKER_FLAGS:STRING="$QILDFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_INSTALL_RPATH=YES \ + -DLIBDIR=/usr/lib${libSuffix} \ + -DENABLE_NLS=OFF \ + -DENABLE_ENCHANT=OFF \ + -DENABLE_PHP=OFF \ + -DENABLE_MAN=ON \ + -DENABLE_DOC=OFF \ + .. + + make -j${jobs} + make -j${jobs} DESTDIR="$destdir" install + + # Move generated documentation directory, if enabled + + mkdir -p "${destdir}${docsdir}" + + if test -d "${destdir}/usr/share/doc/weechat" + then + for file in "${destdir}/usr/share/doc/weechat"/* + do + mv -f -- "$file" "${destdir}${docsdir}" + done + unset file + rm -rf "${destdir}/usr/share/doc/weechat" + fi + + cd .. + + # Copy documentation + cp -p $docs "${destdir}${docsdir}" + + # Compress and link man pages (if needed) + if test -d "${destdir}/$mandir" + then + ( + cd "${destdir}/$mandir" + find . -type f -exec lzip -9 '{}' + + find . -type l | while read -r file + do + ln -sf "$(readlink -- "$file").lz" "${file}.lz" + rm -- "$file" + done + ) + fi +} + diff --git a/sources/SOURCELIST.txt b/sources/SOURCELIST.txt index ae7ee8ae..02ac72ef 100644 --- a/sources/SOURCELIST.txt +++ b/sources/SOURCELIST.txt @@ -503,3 +503,4 @@ http://www.x.org/releases/individual/driver/xf86-video-amdgpu-19.0.1.tar.bz2 http://www.x.org/releases/individual/driver/xf86-input-elographics-1.4.2.tar.bz2 http://pm-utils.freedesktop.org/releases/pm-utils-1.4.1.tar.gz http://rsync.dragora.org/current/sources/clisp-20190924_b07eacba1.tar.lz +http://weechat.org/files/src/weechat-2.6.tar.bz2 diff --git a/sources/weechat-2.6.tar.bz2.sha256 b/sources/weechat-2.6.tar.bz2.sha256 new file mode 100644 index 00000000..2b7c68d2 --- /dev/null +++ b/sources/weechat-2.6.tar.bz2.sha256 @@ -0,0 +1 @@ +0b06e551e69018dbd4828113a56a9657a16cb787eb44bc83adf45424e65759d9 weechat-2.6.tar.bz2 -- 2.11.4.GIT