void-packages/srcpkgs/dwm-custom/template

29 lines
947 B
Bash

# Template file for 'dwm-custom'
pkgname=dwm-custom
version=2024.10.1
revision=1
makedepends="libXinerama-devel libXft-devel freetype-devel pango-devel pkg-config"
short_desc="Customized DWM"
maintainer="Luca Bilke <luca@bil.ke>"
license="MIT"
homepage="https://git.snaile.de/snailed/dwm-custom"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=ea42d232c458ae1b1397b565c02723c2fb373fd84e80d84d3cb600598beaee55
replaces="dwm>=0"
provides='dwm-6.4_1'
do_build() {
make config.mk
vsed -e "/CFLAGS/s|\${CPPFLAGS}|& $CFLAGS|g" -i config.mk
make CC=$CC \
INCS="-I. $(pkg-config --cflags xft pango pangoxft freetype2)" \
LIBS="-lX11 -lXinerama -lpangoxft-1.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype -lXft"
}
do_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install
vinstall README 644 usr/share/doc/$pkgname
vinstall ${FILESDIR}/dwm.desktop 644 usr/share/xsessions
vlicense LICENSE
}