parrot: cleaned up the Pkgfile
[namenlos-ports.git] / dwm / Pkgfile
blob235d90270f5d5301da927561dd919c580b5a1735
1 # Maintainer: Richard Pöttler, richard dot poettler at gmail dot com
2 # Description: dwm is a dynamic window manager for X.
3 # URL: http://www.suckless.org/dwm
4 # Depends on: xorg dmenu
6 name=dwm
7 version=5.3.1
8 release=1
9 source=(http://code.suckless.org/dl/$name/$name-$version.tar.gz config.def.h.patch)
11 build () {
12         cd "$name-$version"
14         # choosing the correct configuration
15         if [ "$DWM_CONF" == namenlos ]
16         then
17                 patch -p0 < ../config.def.h.patch
18         elif [ -n "$DWM_CONF" ]
19         then
20                 cp $DWM_CONF config.h
21         fi
23         sed -i -e 's/SRC/SOURCE/g' Makefile
24         make
25         make DESTDIR=$PKG PREFIX=/usr MANPREFIX=/usr/man install