void-packages/srcpkgs/dwm-custom/template

29 lines
947 B
Bash
Raw Permalink Normal View History

2024-06-03 22:40:16 +02:00
# Template file for 'dwm-custom'
pkgname=dwm-custom
2024-11-12 15:06:28 +01:00
version=2024.11.1
2024-06-03 22:40:16 +02:00
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"
2024-11-12 15:06:28 +01:00
checksum=b09ff3ad77cb83e4d673a8015024f244c6abde1eff67b8820dc86234a37065a4
2024-06-03 22:40:16 +02:00
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
}