34 lines
990 B
Bash
34 lines
990 B
Bash
# Template file for 'dmenu'
|
|
pkgname=dmenu
|
|
version=5.3
|
|
revision=1
|
|
makedepends="libXinerama-devel libXft-devel freetype-devel"
|
|
short_desc="Generic menu for X"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="MIT"
|
|
homepage="https://tools.suckless.org/dmenu/"
|
|
distfiles="https://dl.suckless.org/tools/${pkgname}-${version}.tar.gz"
|
|
checksum=1a8f53e6fd2d749839ec870c5e27b3e14da5c3eeacbfcb945d159e1d5433795f
|
|
|
|
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
|
|
}
|