# st - The suckless simple terminal
# 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=st
version=0.9.3
release=1
desc="The suckless simple terminal"
url="https://st.suckless.org/"
license="MIT"
depend="glibc libx11 libxft freetype fontconfig"
makedepend=""
source="https://dl.suckless.org/st/st-0.9.3.tar.gz"
sha256="SKIP"

build() {
	cd "st-0.9.3"
	# 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 "st-0.9.3"
	make PREFIX=/usr DESTDIR="$pkgdir" install
	[ -f config.h ] && install -Dm644 config.h "$pkgdir/usr/share/st/config.h"
	true
}
