0715ecb6f9
This version of xmobar adds suport for the NL80211 API for wireless devices and deprecates the old iwlib based approach.
36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
# Template file for 'xmobar'
|
|
pkgname=xmobar
|
|
version=0.33
|
|
revision=1
|
|
build_style=haskell-stack
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libX11-devel libXinerama-devel libXrandr-devel libXScrnSaver-devel
|
|
$(vopt_if xft libXft-devel)
|
|
$(vopt_if iwlib wireless_tools-devel)
|
|
$(vopt_if xpm libXpm-devel)
|
|
$(vopt_if dbus libxml2-devel $(vopt_if mpris libxml2-devel))
|
|
$(vopt_if alsa alsa-lib-devel)"
|
|
short_desc="Minimalistic Text Based Status Bar"
|
|
maintainer="xaltsc <xaltsc@protonmail.ch>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://xmobar.org"
|
|
distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=289885f9abfedd878d67b5d45e6d8c550291bc702967ce2edbf115363dc623c3
|
|
build_options="dbus threaded utf8 xft mpd mpris inotify iwlib alsa datezone
|
|
xpm uvmeter weather nl80211"
|
|
build_options_default="threaded utf8 xft inotify nl80211 datezone weather xpm"
|
|
nopie_files="/usr/bin/xmobar"
|
|
nocross=yes
|
|
vopt_hflag() {
|
|
echo $(vopt_if $1 "--flag ${pkgname}:with_$1" "--flag ${pkgname}:-with_$1")
|
|
}
|
|
mk_string_build_args() {
|
|
for optn in $1
|
|
do
|
|
echo -n " $(vopt_hflag $optn)"
|
|
done
|
|
}
|
|
make_build_args=$(mk_string_build_args "$build_options")
|
|
post_install() {
|
|
vlicense license
|
|
}
|