2016-05-20 15:12:49 +02:00
|
|
|
# Template file for 'lemonbuddy'
|
|
|
|
pkgname=lemonbuddy
|
2016-10-29 08:45:23 +02:00
|
|
|
version=2.1.10
|
|
|
|
revision=1
|
|
|
|
wrksrc="${pkgname}-${version}"
|
|
|
|
_i3ipcpp_version=0.5.1
|
|
|
|
_xpp_version=1.3.0
|
2016-05-20 15:12:49 +02:00
|
|
|
build_style=cmake
|
|
|
|
configure_args="
|
2016-10-29 08:45:23 +02:00
|
|
|
-DCMAKE_CXX_COMPILER=clang++
|
|
|
|
-DCMAKE_CXX_FLAGS=-fPIE
|
|
|
|
-DCMAKE_EXE_LINKER_FLAGS=-pie
|
2016-05-20 15:12:49 +02:00
|
|
|
-DENABLE_ALSA=$(vopt_if alsa ON OFF)
|
|
|
|
-DENABLE_I3=$(vopt_if i3 ON OFF)
|
|
|
|
-DENABLE_MPD=$(vopt_if mpd ON OFF)
|
|
|
|
-DENABLE_NETWORK=$(vopt_if network ON OFF)"
|
2016-10-29 08:45:23 +02:00
|
|
|
depends=("libXft" "xcb-util-wm")
|
2016-05-20 15:12:49 +02:00
|
|
|
hostmakedepends="clang pkg-config xcb-proto"
|
2016-10-29 08:45:23 +02:00
|
|
|
makedepends="libxcb-devel libXft-devel xcb-util-wm-devel boost-devel
|
|
|
|
$(vopt_if alsa alsa-lib-devel)
|
|
|
|
$(vopt_if i3 "i3-devel jsoncpp-devel")
|
|
|
|
$(vopt_if mpd libmpdclient-devel)
|
|
|
|
$(vopt_if network wireless_tools-devel)"
|
|
|
|
short_desc="A fast and easy-to-use status bar"
|
2016-05-20 15:12:49 +02:00
|
|
|
maintainer="Michael Carlberg <c@rlberg.se>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://github.com/jaagr/lemonbuddy"
|
|
|
|
distfiles="
|
|
|
|
https://github.com/jaagr/lemonbuddy/archive/${version}.tar.gz
|
|
|
|
https://github.com/jaagr/xpp/archive/${_xpp_version}.tar.gz
|
2016-10-29 08:45:23 +02:00
|
|
|
$(vopt_if i3 "https://github.com/jaagr/i3ipcpp/archive/v${_i3ipcpp_version}.tar.gz")"
|
2016-05-20 15:12:49 +02:00
|
|
|
checksum="
|
2016-10-29 08:45:23 +02:00
|
|
|
d7e446927cb039e4aff154b7fdb6c668b92605bb8d87ff5f3125ce011c3cbe61
|
|
|
|
f66b5ff4881d359521a1516c3fd87a5ace2e95e0ca2e6a1e0ab7b66cc6d3f582
|
|
|
|
$(vopt_if i3 2c5243e1d3be787f8e64ce5b1a3c087999e2ccaeea1db317f6ab2df3556fa952)"
|
2016-05-20 15:12:49 +02:00
|
|
|
|
|
|
|
build_options="alsa i3 mpd network"
|
|
|
|
build_options_default="$build_options"
|
|
|
|
|
2016-10-03 22:23:07 +02:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2016-10-29 08:45:23 +02:00
|
|
|
arm*) broken="cross-compiler with c++14 support";;
|
2016-10-03 22:26:13 +02:00
|
|
|
aarch64-musl) CXXFLAGS="-D_LINUX_IF_ETHER_H";;
|
2016-10-03 22:23:07 +02:00
|
|
|
esac
|
|
|
|
|
2016-05-20 15:12:49 +02:00
|
|
|
post_extract() {
|
|
|
|
[ -d ../i3ipcpp-${_i3ipcpp_version} ] && \
|
|
|
|
mv ../i3ipcpp-${_i3ipcpp_version}/* lib/i3ipcpp/ || true
|
|
|
|
[ -d ../xpp-${_xpp_version} ] && \
|
|
|
|
mv ../xpp-${_xpp_version}/* lib/xpp/ || true
|
|
|
|
}
|
|
|
|
|
2016-10-29 08:45:23 +02:00
|
|
|
pre_configure() {
|
|
|
|
export CFLAGS="$(echo $CFLAGS | sed 's/-specs=.* //g')"
|
|
|
|
export CXXFLAGS="$(echo $CXXFLAGS | sed 's/-specs=.* //g')"
|
|
|
|
export LDFLAGS="$(echo $LDFLAGS | sed 's/-specs=.* //g')"
|
2016-05-20 15:12:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|