2016-11-19 05:22:44 +00:00
|
|
|
# Template file for 'polybar'
|
|
|
|
pkgname=polybar
|
2017-03-16 10:35:01 +00:00
|
|
|
version=3.0.4
|
2016-06-20 15:28:21 +00:00
|
|
|
revision=1
|
2017-03-16 10:35:01 +00:00
|
|
|
_i3ipcpp_version=0.6.2
|
|
|
|
_xpp_version=1.3.6
|
2016-06-20 15:28:21 +00:00
|
|
|
build_style=cmake
|
2017-03-16 10:35:01 +00:00
|
|
|
configure_args="
|
2016-11-19 06:59:27 +00:00
|
|
|
-DENABLE_ALSA=$(vopt_if alsa ON OFF)
|
2017-03-16 10:35:01 +00:00
|
|
|
-DENABLE_CURL=$(vopt_if curl ON OFF)
|
2016-11-19 06:59:27 +00:00
|
|
|
-DENABLE_I3=$(vopt_if i3 ON OFF)
|
|
|
|
-DENABLE_MPD=$(vopt_if mpd ON OFF)
|
|
|
|
-DENABLE_NETWORK=$(vopt_if network ON OFF)"
|
2017-03-16 10:35:01 +00:00
|
|
|
depends="cairo xcb-util-wm xcb-util-image xcb-util-xrm"
|
|
|
|
hostmakedepends="pkg-config xcb-proto"
|
|
|
|
makedepends="cairo-devel xcb-util-image-devel xcb-util-wm-devel xcb-util-xrm-devel zlib-devel
|
|
|
|
$(vopt_if alsa "alsa-lib-devel")
|
|
|
|
$(vopt_if curl "libcurl-devel")
|
|
|
|
$(vopt_if i3 "i3-devel jsoncpp-devel")
|
|
|
|
$(vopt_if mpd "libmpdclient-devel")
|
|
|
|
$(vopt_if network "wireless_tools-devel")"
|
2016-10-29 17:16:39 +00:00
|
|
|
short_desc="A fast and easy-to-use status bar"
|
2016-06-20 15:28:21 +00:00
|
|
|
maintainer="Michael Carlberg <c@rlberg.se>"
|
|
|
|
license="MIT"
|
2016-11-19 05:22:44 +00:00
|
|
|
homepage="https://github.com/jaagr/polybar"
|
2016-06-20 15:28:21 +00:00
|
|
|
distfiles="
|
2016-11-19 06:59:27 +00: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)"
|
2016-06-20 15:28:21 +00:00
|
|
|
checksum="
|
2017-03-16 10:35:01 +00:00
|
|
|
a6a25a5305b7357b11769de6c0f5bf3175d7c65f1c80615779e75cb22aa6892c
|
|
|
|
b81993893190bf7ba19529e0da6e8b069e13e833f6a62874830b46785bee3349
|
|
|
|
$(vopt_if i3 7ad9c0c1e1cb9dfd07ecc2a7769eae9ac962c22db2e07be08b2186b7fd85189d)"
|
2016-06-20 15:28:21 +00:00
|
|
|
|
2017-03-16 10:35:01 +00:00
|
|
|
build_options="alsa curl i3 mpd network"
|
2016-06-20 15:28:21 +00:00
|
|
|
build_options_default="$build_options"
|
|
|
|
|
2017-03-16 10:35:01 +00:00
|
|
|
if [ "$build_option_network" -a "$XBPS_TARGET_MACHINE" = "aarch64-musl" ]; then
|
|
|
|
CXXFLAGS+=" -D_LINUX_IF_ETHER_H"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
configure_args+=" -DTHREADS_PTHREAD_ARG=OFF"
|
|
|
|
fi
|
2016-10-29 17:16:39 +00:00
|
|
|
|
2016-06-20 15:28:21 +00:00
|
|
|
post_extract() {
|
2017-03-16 10:35:01 +00:00
|
|
|
if [ -d ../i3ipcpp-${_i3ipcpp_version} ]; then
|
|
|
|
mv -f -T ../i3ipcpp-${_i3ipcpp_version} lib/i3ipcpp
|
|
|
|
fi
|
|
|
|
if [ -d ../xpp-${_xpp_version} ]; then
|
|
|
|
mv -f -T ../xpp-${_xpp_version} lib/xpp
|
|
|
|
fi
|
2016-06-29 03:47:02 +00:00
|
|
|
}
|
|
|
|
|
2016-06-20 15:28:21 +00:00
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|