summaryrefslogtreecommitdiff
path: root/community/dwm/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/dwm/PKGBUILD')
-rw-r--r--community/dwm/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/dwm/PKGBUILD b/community/dwm/PKGBUILD
new file mode 100644
index 000000000..b2fceeb60
--- /dev/null
+++ b/community/dwm/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 60970 2011-12-19 21:33:58Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Dag Odenhall <dag.odenhall@gmail.com>
+# Contributor: Grigorios Bouzakis <grbzks@gmail.com>
+
+pkgname=dwm
+pkgver=6.0
+pkgrel=1
+pkgdesc="A dynamic window manager for X"
+url="http://dwm.suckless.org"
+arch=('i686' 'x86_64')
+license=('MIT')
+options=(zipman)
+depends=('libx11' 'libxinerama')
+install=dwm.install
+source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz
+ config.h
+ dwm.desktop)
+md5sums=('8bb00d4142259beb11e13473b81c0857'
+ '2453e037f46449774ec8afab49b4f1a2'
+ '939f403a71b6e85261d09fc3412269ee')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ cp $srcdir/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
+ make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make PREFIX=/usr DESTDIR=$pkgdir install
+ install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README
+ install -m644 -D $srcdir/dwm.desktop $pkgdir/usr/share/xsessions/dwm.desktop
+}