1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- # Copyright 2021 Gentoo Authors
- # Distributed under the terms of the GNU General Public License v2
- EAPI=7
- inherit savedconfig
- DESCRIPTION="async suckless status monitor"
- HOMEPAGE="https://notabug.org/dm9pZCAq/aslstatus"
- if [ "${PV}" = 9999 ]; then
- inherit git-r3
- EGIT_REPO_URI="https://notabug.org/dm9pZCAq/${PN}.git"
- VERSION=git
- else
- SRC_URI="
- https://notabug.org/dm9pZCAq/${PN}/archive/${PV}.tar.gz
- -> ${P}.tar.gz
- "
- KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
- S="${WORKDIR}/${PN}"
- VERSION="${PV}"
- fi
- LICENSE="MIT"
- SLOT="0"
- IUSE="+X +xkb +alsa pulseaudio"
- REQUIRED_USE="
- xkb? ( X )
- ^^ ( alsa pulseaudio )
- "
- DEPEND="
- X? ( x11-libs/libxcb[xkb?] )
- alsa? ( media-libs/alsa-lib[thread-safety] )
- pulseaudio? ( media-sound/pulseaudio )
- "
- RDEPEND="${DEPEND}"
- BDEPEND="virtual/pkgconfig"
- src_prepare() {
- default
- restore_config {components_,}config.h
- }
- src_compile() {
- local audio=''
- use alsa && audio=ALSA
- use pulseaudio && audio=PULSE
- emake VERSION="${VERSION}" \
- AUDIO="${audio}" \
- X="$(usex X 1 0)" \
- XKB="$(usex xkb 1 0)"
- }
- src_install() {
- local DOCS=( *.md )
- dobin "${PN}"
- doman "${PN}.1"
- save_config {components_,}config.h
- einstalldocs
- }
|