1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-18 13:55:11 -05:00
polybar/contrib/polybar.xbps/template

57 lines
1.8 KiB
Text
Raw Normal View History

2016-11-19 00:22:44 -05:00
# Template file for 'polybar'
pkgname=polybar
2016-11-19 01:59:27 -05:00
version=2.3.0
revision=1
2016-10-29 13:16:39 -04:00
wrksrc="${pkgname}-${version}"
_i3ipcpp_version=0.5.1
2016-11-19 01:59:27 -05:00
_xpp_version=1.3.1
build_style=cmake
2016-11-19 01:59:27 -05:00
replaces="lemonbuddy>=0"
configure_args="-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_CXX_FLAGS=-fPIE
-DCMAKE_EXE_LINKER_FLAGS=-pie
-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)"
depends="libXft xcb-util-wm xcb-util-image"
hostmakedepends="clang pkg-config xcb-proto"
2016-11-19 01:59:27 -05:00
makedepends="libxcb-devel libXft-devel xcb-util-image-devel xcb-util-wm-devel boost-devel
$(vopt_if alsa alsa-lib-devel)
$(vopt_if i3 i3-devel)
$(vopt_if i3 jsoncpp-devel)
$(vopt_if mpd libmpdclient-devel)
$(vopt_if network wireless_tools-devel)"
2016-10-29 13:16:39 -04:00
short_desc="A fast and easy-to-use status bar"
maintainer="Michael Carlberg <c@rlberg.se>"
license="MIT"
2016-11-19 00:22:44 -05:00
homepage="https://github.com/jaagr/polybar"
distfiles="
2016-11-19 01:59:27 -05:00
https://github.com/jaagr/polybar/archive/${version}.tar.gz
https://github.com/jaagr/xpp/archive/${_xpp_version}.tar.gz
$(vopt_if i3 https://github.com/jaagr/i3ipcpp/archive/v${_i3ipcpp_version}.tar.gz)"
checksum="
2016-11-19 01:59:27 -05:00
962252d5e5ac44f630c2598b63ecd5ed269f64899008114fbccf05455b93e742
de92b258a136aa782a876d3058009a31238cc92f16038aa243ea6d55057e2ed1
$(vopt_if i3 2c5243e1d3be787f8e64ce5b1a3c087999e2ccaeea1db317f6ab2df3556fa952)"
build_options="alsa i3 mpd network"
build_options_default="$build_options"
2016-10-29 13:16:39 -04:00
case "$XBPS_TARGET_MACHINE" in
arm*) broken="cross-compiler with c++14 support";;
2016-11-19 01:59:27 -05:00
aarch64*) broken="cross-compiler with c++14 support";;
2016-10-29 13:16:39 -04:00
aarch64-musl) CXXFLAGS="-D_LINUX_IF_ETHER_H";;
esac
post_extract() {
[ -d ../i3ipcpp-${_i3ipcpp_version} ] && \
mv ../i3ipcpp-${_i3ipcpp_version}/* lib/i3ipcpp/ || true
[ -d ../xpp-${_xpp_version} ] && \
mv ../xpp-${_xpp_version}/* lib/xpp/ || true
}
post_install() {
vlicense LICENSE
}