2011-12-21 14:09:50 +00:00
|
|
|
# Template file for 'dwm'
|
|
|
|
pkgname=dwm
|
|
|
|
version=6.0
|
2013-06-22 16:57:35 +00:00
|
|
|
revision=2
|
2011-12-21 14:09:50 +00:00
|
|
|
homepage="http://dwm.suckless.org"
|
|
|
|
distfiles="http://dl.suckless.org/dwm/dwm-$version.tar.gz"
|
2012-05-23 16:26:56 +00:00
|
|
|
makedepends="libX11-devel libXinerama-devel"
|
2011-12-21 14:09:50 +00:00
|
|
|
short_desc="A dynamic window manager for X"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="MIT"
|
|
|
|
checksum=b2b9483de69259eeea56844899bb2385158d3e79a42d82b10c142099fc8eeb56
|
|
|
|
long_desc="
|
|
|
|
dwm is a dynamic window manager for X. It manages windows in tiled, monocle
|
|
|
|
and floating layouts. All of the layouts can be applied dynamically,
|
|
|
|
optimising the environment for the application in use and the task performed."
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
cp ${FILESDIR}/config.h config.h
|
|
|
|
sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk
|
|
|
|
sed -i 's/^CFLAGS = -g/#CFLAGS += -g/g' config.mk
|
|
|
|
sed -i 's/^#CFLAGS = -std/CFLAGS += -std/g' config.mk
|
|
|
|
sed -i 's/^LDFLAGS = -g/#LDFLAGS += -g/g' config.mk
|
|
|
|
sed -i 's/^#LDFLAGS = -s/LDFLAGS += -s/g' config.mk
|
2013-06-22 11:53:41 +00:00
|
|
|
make CC=$CC INCS="-I." LIBS="-lX11 -lXinerama"
|
2011-12-21 14:09:50 +00: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
|
|
|
|
}
|
2013-04-12 07:46:44 +00:00
|
|
|
|
|
|
|
dwm_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|