# Template file for 'dmenu-custom' pkgname=dmenu-custom version=2024.5.1 revision=5 makedepends="libXinerama-devel libXft-devel freetype-devel pango-devel pkg-config" short_desc="Customized dmenu" maintainer="Luca Bilke " license="MIT" homepage="https://git.snaile.de/snailed/dmenu-custom" distfiles="${homepage}/archive/${version}.tar.gz" checksum=89748a6fccf37e5655b85dc56366ea05c6c2d9e7865e1c7adb4ffa04a004f773 replaces="dmenu>=0" provides="dmenu-5.2_1" post_patch() { sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \ -e '/LDFLAGS/{s/-s//;s/=/+=/}' config.mk } do_build() { [ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h sed -i -e "s|^FREETYPEINC|#FREETYPEINC|g" \ -e "s|^X11INC|#X11INC|g" \ -e "s|^X11LIB|#X11LIB|g" config.mk x11inc=$XBPS_CROSS_BASE/usr/include/X11 x11lib=$XBPS_CROSS_BASE/usr/lib freetypeinc=$XBPS_CROSS_BASE/usr/include/freetype2 make CC="$CC" ${makejobs} X11INC=$x11inc X11LIB=$x11lib FREETYPEINC=$freetypeinc } do_install() { make PREFIX=/usr DESTDIR=${DESTDIR} install vlicense LICENSE }