void-packages/srcpkgs/dmenu/template
Lugubris 5a1ba21aae Take over maintainership of some packages
github will update me on dnscrypt-proxy, nasa-wallpaper, mc, i3status and
tty-clock. for now dmenu's updates are tracked manually. info-nano mailing list
updates on nano.
2019-08-25 10:23:08 +02:00

40 lines
1.2 KiB
Bash

# Template file for 'dmenu'
pkgname=dmenu
version=4.9
revision=1
makedepends="libXinerama-devel libXft-devel freetype-devel"
short_desc="Generic menu for X"
maintainer="Lugubris <lugubris@disroot.org>"
license="MIT"
homepage="https://tools.suckless.org/dmenu/"
distfiles="https://dl.suckless.org/tools/${pkgname}-${version}.tar.gz"
checksum=b3971f4f354476a37b2afb498693649009b201550b0c7c88e866af8132b64945
build_options="fuzzymatch"
desc_option_fuzzymatch="Enable Fuzzymatch support"
post_extract() {
if [ "$build_option_fuzzymatch" ]; then
msg_normal "Applying fuzzymatch patches"
patch -p1 < "${FILESDIR}/fuzzymatch.patch"
fi
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
}