mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
lemonbuddy: update to 2.1.10
This commit is contained in:
parent
934c9a4278
commit
882f544195
4 changed files with 67 additions and 16 deletions
17
srcpkgs/lemonbuddy/patches/001-musl-poll.patch
Normal file
17
srcpkgs/lemonbuddy/patches/001-musl-poll.patch
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
Fix poll.h warning on musl
|
||||||
|
|
||||||
|
--- include/adapters/alsa.hpp.orig
|
||||||
|
+++ include/adapters/alsa.hpp
|
||||||
|
@@ -4,7 +4,12 @@
|
||||||
|
#include <functional>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
+#include <poll.h>
|
||||||
|
+
|
||||||
|
+#pragma clang diagnostic push
|
||||||
|
+#pragma clang diagnostic ignored "-W#warnings"
|
||||||
|
#include <alsa/asoundlib.h>
|
||||||
|
+#pragma clang diagnostic pop
|
||||||
|
|
||||||
|
#include "common.hpp"
|
||||||
|
#include "config.hpp"
|
13
srcpkgs/lemonbuddy/patches/002-musl-poll.patch
Normal file
13
srcpkgs/lemonbuddy/patches/002-musl-poll.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
Fix poll.h warning on musl
|
||||||
|
|
||||||
|
--- include/utils/inotify.hpp.orig
|
||||||
|
+++ include/utils/inotify.hpp
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <sys/inotify.h>
|
||||||
|
-#include <sys/poll.h>
|
||||||
|
+#include <poll.h>
|
||||||
|
#include <cstdio>
|
||||||
|
|
||||||
|
#include "common.hpp"
|
13
srcpkgs/lemonbuddy/patches/003-musl-poll.patch
Normal file
13
srcpkgs/lemonbuddy/patches/003-musl-poll.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
Fix poll.h warning on musl
|
||||||
|
|
||||||
|
--- include/utils/socket.hpp.orig
|
||||||
|
+++ include/utils/socket.hpp
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <fcntl.h>
|
||||||
|
-#include <sys/poll.h>
|
||||||
|
+#include <poll.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/un.h>
|
||||||
|
|
|
@ -1,38 +1,44 @@
|
||||||
# Template file for 'lemonbuddy'
|
# Template file for 'lemonbuddy'
|
||||||
pkgname=lemonbuddy
|
pkgname=lemonbuddy
|
||||||
version=1.4.4
|
version=2.1.10
|
||||||
revision=2
|
revision=1
|
||||||
_i3ipcpp_version=0.3.0
|
wrksrc="${pkgname}-${version}"
|
||||||
_xpp_version=1.0.0
|
_i3ipcpp_version=0.5.1
|
||||||
|
_xpp_version=1.3.0
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="
|
configure_args="
|
||||||
|
-DCMAKE_CXX_COMPILER=clang++
|
||||||
|
-DCMAKE_CXX_FLAGS=-fPIE
|
||||||
|
-DCMAKE_EXE_LINKER_FLAGS=-pie
|
||||||
-DENABLE_ALSA=$(vopt_if alsa ON OFF)
|
-DENABLE_ALSA=$(vopt_if alsa ON OFF)
|
||||||
-DENABLE_I3=$(vopt_if i3 ON OFF)
|
-DENABLE_I3=$(vopt_if i3 ON OFF)
|
||||||
-DENABLE_MPD=$(vopt_if mpd ON OFF)
|
-DENABLE_MPD=$(vopt_if mpd ON OFF)
|
||||||
-DENABLE_NETWORK=$(vopt_if network ON OFF)"
|
-DENABLE_NETWORK=$(vopt_if network ON OFF)"
|
||||||
|
depends=("libXft" "xcb-util-wm")
|
||||||
hostmakedepends="clang pkg-config xcb-proto"
|
hostmakedepends="clang pkg-config xcb-proto"
|
||||||
makedepends="libX11-devel libxcb-devel boost-devel
|
makedepends="libxcb-devel libXft-devel xcb-util-wm-devel boost-devel
|
||||||
${build_option_alsa:+alsa-lib-devel}
|
$(vopt_if alsa alsa-lib-devel)
|
||||||
${build_option_i3:+i3-devel i3ipc-glib-devel libsigc++-devel jsoncpp-devel}
|
$(vopt_if i3 "i3-devel jsoncpp-devel")
|
||||||
${build_option_mpd:+libmpdclient-devel}
|
$(vopt_if mpd libmpdclient-devel)
|
||||||
${build_option_network:+wireless_tools-devel}"
|
$(vopt_if network wireless_tools-devel)"
|
||||||
short_desc="A fast and easy-to-use tool for Lemonbar"
|
short_desc="A fast and easy-to-use status bar"
|
||||||
maintainer="Michael Carlberg <c@rlberg.se>"
|
maintainer="Michael Carlberg <c@rlberg.se>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/jaagr/lemonbuddy"
|
homepage="https://github.com/jaagr/lemonbuddy"
|
||||||
distfiles="
|
distfiles="
|
||||||
https://github.com/jaagr/lemonbuddy/archive/${version}.tar.gz
|
https://github.com/jaagr/lemonbuddy/archive/${version}.tar.gz
|
||||||
https://github.com/jaagr/xpp/archive/${_xpp_version}.tar.gz
|
https://github.com/jaagr/xpp/archive/${_xpp_version}.tar.gz
|
||||||
${build_option_i3:+https://github.com/jaagr/i3ipcpp/archive/v${_i3ipcpp_version}.tar.gz}"
|
$(vopt_if i3 "https://github.com/jaagr/i3ipcpp/archive/v${_i3ipcpp_version}.tar.gz")"
|
||||||
checksum="
|
checksum="
|
||||||
097eb8d4715bf47e54c825594f1d75d834eb8e936e1268b3c235ab7fa017e878
|
d7e446927cb039e4aff154b7fdb6c668b92605bb8d87ff5f3125ce011c3cbe61
|
||||||
a0f0f7b3f007e6302835fe7dfb7b935df8c4ab8c9f76b30afb652a04199158e9
|
f66b5ff4881d359521a1516c3fd87a5ace2e95e0ca2e6a1e0ab7b66cc6d3f582
|
||||||
${build_option_i3:+85b588f957740f89a275b4b2acc27cab78ee2606f5e68e62ce61b9c1278bb366}"
|
$(vopt_if i3 2c5243e1d3be787f8e64ce5b1a3c087999e2ccaeea1db317f6ab2df3556fa952)"
|
||||||
|
|
||||||
build_options="alsa i3 mpd network"
|
build_options="alsa i3 mpd network"
|
||||||
build_options_default="$build_options"
|
build_options_default="$build_options"
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
arm*) broken="cross-compiler with c++14 support";;
|
||||||
aarch64-musl) CXXFLAGS="-D_LINUX_IF_ETHER_H";;
|
aarch64-musl) CXXFLAGS="-D_LINUX_IF_ETHER_H";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -43,8 +49,10 @@ post_extract() {
|
||||||
mv ../xpp-${_xpp_version}/* lib/xpp/ || true
|
mv ../xpp-${_xpp_version}/* lib/xpp/ || true
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_build() {
|
pre_configure() {
|
||||||
./version.sh ${version}
|
export CFLAGS="$(echo $CFLAGS | sed 's/-specs=.* //g')"
|
||||||
|
export CXXFLAGS="$(echo $CXXFLAGS | sed 's/-specs=.* //g')"
|
||||||
|
export LDFLAGS="$(echo $LDFLAGS | sed 's/-specs=.* //g')"
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue