void-packages/srcpkgs/dwm/template

26 lines
775 B
Bash
Raw Normal View History

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