void-packages/srcpkgs/dwm/template

26 lines
833 B
Bash
Raw Normal View History

2011-12-21 14:09:50 +00:00
# Template file for 'dwm'
pkgname=dwm
2015-11-10 14:33:45 +00:00
version=6.1
revision=1
2011-12-21 14:09:50 +00:00
homepage="http://dwm.suckless.org"
distfiles="http://dl.suckless.org/dwm/dwm-$version.tar.gz"
2015-11-10 14:33:45 +00:00
makedepends="libXinerama-devel libXft-devel freetype-devel"
2011-12-21 14:09:50 +00:00
short_desc="A dynamic window manager for X"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2011-12-21 14:09:50 +00:00
license="MIT"
2015-11-10 14:33:45 +00:00
checksum=c2f6c56167f0acdbe3dc37cca9c1a19260c040f2d4800e3529a21ad7cce275fe
2011-12-21 14:09:50 +00:00
do_build() {
cp ${FILESDIR}/config.h config.h
2014-12-19 10:32:39 +00:00
sed -i "/CFLAGS/s|\${CPPFLAGS}|& $CFLAGS|g" config.mk
sed -i "/LDFLAGS/s|\-s|$LDFLAGS|g" config.mk
2015-11-10 14:33:45 +00:00
make CC=$CC INCS="-I. -I${XBPS_CROSS_BASE}/usr/include/freetype2" LIBS="-lX11 -lXinerama -lXft -lfontconfig"
2011-12-21 14:09:50 +00:00
}
do_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install
vinstall README 644 usr/share/doc/$pkgname
vinstall ${FILESDIR}/dwm.desktop 644 usr/share/xsessions
2015-11-10 14:33:45 +00:00
vlicense LICENSE
2011-12-21 14:09:50 +00:00
}