New package: xmobar-0.28.1

This commit is contained in:
xaltsc 2018-07-24 16:03:15 +02:00 committed by Johannes
parent be62e0cd1f
commit 2c75876e43
3 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,8 @@
resolver: lts-12.13
packages:
- .
extra-deps:
- iwlib-0.1.0
- parsec-numbers-0.1.0
- alsa-mixer-0.2.0.3
- dbus-1.0.1

36
srcpkgs/xmobar/template Normal file
View File

@ -0,0 +1,36 @@
# Template file for 'xmobar'
pkgname=xmobar
version=0.28.1
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="A 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=e53f89c9c90490ce53a0aae91595e176f74c1d534c2d59bb2e45996c43de37ff
build_options="dbus threaded utf8 xft mpd mpris inotify iwlib alsa datezone
xpm uvmeter weather conduit"
build_options_default="threaded utf8 xft inotify iwlib 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
}

2
srcpkgs/xmobar/update Normal file
View File

@ -0,0 +1,2 @@
site=http://hackage.haskell.org/package/xmobar
pattern="Readme for xmobar-\K[\d\.]+"