void-packages/srcpkgs/lemonbuddy/template

53 lines
1.6 KiB
Bash

# Template file for 'lemonbuddy'
pkgname=lemonbuddy
version=1.4.4
revision=2
_i3ipcpp_version=0.3.0
_xpp_version=1.0.0
build_style=cmake
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}"
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
https://github.com/jaagr/xpp/archive/${_xpp_version}.tar.gz
${build_option_i3:+https://github.com/jaagr/i3ipcpp/archive/v${_i3ipcpp_version}.tar.gz}"
checksum="
097eb8d4715bf47e54c825594f1d75d834eb8e936e1268b3c235ab7fa017e878
a0f0f7b3f007e6302835fe7dfb7b935df8c4ab8c9f76b30afb652a04199158e9
${build_option_i3:+85b588f957740f89a275b4b2acc27cab78ee2606f5e68e62ce61b9c1278bb366}"
build_options="alsa i3 mpd network"
build_options_default="$build_options"
case "$XBPS_TARGET_MACHINE" in
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
}
pre_build() {
./version.sh ${version}
}
post_install() {
vlicense LICENSE
}