# slstatus - Status monitor for dwm
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=slstatus
version=1.1
release=1
desc="Status monitor for dwm"
url="https://tools.suckless.org/slstatus/"
license="ISC"
depend="libx11"
makedepend="bmake"
source="https://dl.suckless.org/tools/slstatus-1.1.tar.gz"
sha256="SKIP"

build() {
	cd "slstatus-1.1"
	# Suckless software is configured in the source. Arctic ships a config.h
	# with the Arctic palette; replace it and rebuild to change anything.
	[ -f config.def.h ] && cp -f config.def.h config.h
	make -j"$JOBS" PREFIX=/usr
}

package() {
	cd "slstatus-1.1"
	make PREFIX=/usr DESTDIR="$pkgdir" install
	[ -f config.h ] && install -Dm644 config.h "$pkgdir/usr/share/slstatus/config.h"
	true
}
