2016-06-20 11:28:21 -04:00
|
|
|
# Template file for 'lemonbuddy'
|
|
|
|
pkgname=lemonbuddy
|
2016-06-28 23:47:02 -04:00
|
|
|
version=1.4.1
|
2016-06-20 11:28:21 -04:00
|
|
|
revision=1
|
2016-06-28 23:47:02 -04:00
|
|
|
_i3ipcpp_version=0.3.0
|
|
|
|
_xpp_version=1.0.0
|
2016-06-20 11:28:21 -04:00
|
|
|
build_style=cmake
|
2016-06-28 23:47:02 -04:00
|
|
|
configure_args="
|
|
|
|
-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)"
|
|
|
|
hostmakedepends="clang pkg-config xcb-proto"
|
|
|
|
makedepends="libX11-devel libxcb-devel boost-devel
|
|
|
|
${build_option_alsa:+alsa-lib-devel}
|
|
|
|
${build_option_i3:+i3-devel i3ipc-glib-devel libsigc++-devel jsoncpp-devel}
|
|
|
|
${build_option_mpd:+libmpdclient-devel}
|
|
|
|
${build_option_network:+wireless_tools-devel}"
|
2016-06-20 11:28:21 -04:00
|
|
|
short_desc="A fast and easy-to-use tool for Lemonbar"
|
|
|
|
maintainer="Michael Carlberg <c@rlberg.se>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://github.com/jaagr/lemonbuddy"
|
|
|
|
distfiles="
|
|
|
|
https://github.com/jaagr/lemonbuddy/archive/${version}.tar.gz
|
2016-06-28 23:47:02 -04:00
|
|
|
https://github.com/jaagr/xpp/archive/${_xpp_version}.tar.gz
|
|
|
|
${build_option_i3:+https://github.com/jaagr/i3ipcpp/archive/v${_i3ipcpp_version}.tar.gz}"
|
2016-06-20 11:28:21 -04:00
|
|
|
checksum="
|
2016-06-28 23:47:02 -04:00
|
|
|
09de151bea68bcb3d646e65628b1ce5c3bb89a2a1426bb69996976468e9c13e8
|
|
|
|
a0f0f7b3f007e6302835fe7dfb7b935df8c4ab8c9f76b30afb652a04199158e9
|
|
|
|
${build_option_i3:+85b588f957740f89a275b4b2acc27cab78ee2606f5e68e62ce61b9c1278bb366}"
|
2016-06-20 11:28:21 -04:00
|
|
|
|
|
|
|
build_options="alsa i3 mpd network"
|
|
|
|
build_options_default="$build_options"
|
|
|
|
|
|
|
|
post_extract() {
|
2016-06-28 23:47:02 -04:00
|
|
|
[ -d ../i3ipcpp-${_i3ipcpp_version} ] && \
|
|
|
|
mv ../i3ipcpp-${_i3ipcpp_version}/* lib/i3ipcpp/ || true
|
|
|
|
[ -d ../xpp-${_xpp_version} ] && \
|
|
|
|
mv ../xpp-${_xpp_version}/* lib/xpp/ || true
|
|
|
|
}
|
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
./version.sh ${version}
|
2016-06-20 11:28:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|