summaryrefslogtreecommitdiff
path: root/community/wmii
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/wmii
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/wmii')
-rw-r--r--community/wmii/PKGBUILD39
-rw-r--r--community/wmii/fix-freetype-include.patch11
2 files changed, 50 insertions, 0 deletions
diff --git a/community/wmii/PKGBUILD b/community/wmii/PKGBUILD
new file mode 100644
index 000000000..84407f57c
--- /dev/null
+++ b/community/wmii/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 65389 2012-02-21 02:31:44Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Jeffrey 'jf' Lim <jfs.world@gmail.com>
+
+pkgname=wmii
+pkgver=3.9.2
+pkgrel=3
+pkgdesc="A small, dynamic window manager for X11"
+arch=('i686' 'x86_64')
+license=('MIT')
+url="http://wmii.suckless.org/"
+depends=('libxft' 'libxrandr' 'libxinerama' 'dash')
+options=('!makeflags')
+source=(http://dl.suckless.org/${pkgname}/${pkgname}+ixp-${pkgver}.tbz
+ 'fix-freetype-include.patch')
+md5sums=('3d480502b7b1e2a405d941df67f16bcf'
+ '97febd4a1df80aa4afbd126de1f36496')
+
+build() {
+ cd ${srcdir}/${pkgname}+ixp-${pkgver}
+
+ patch -Np1 -i ${srcdir}/fix-freetype-include.patch
+
+ sed -i 's|PREFIX = /usr/local|PREFIX = /usr|' config.mk
+ sed -i 's|ETC = $(PREFIX)/etc|ETC = /etc|' config.mk
+ sed -i 's# !=#!=#' mk/hdr.mk
+ sed -i 's#env python#env python2#' alternative_wmiircs/python/wmiirc
+ echo 'LIBS+=-lXrender -lX11' >>config.mk
+
+ export MAKEFLAGS="-j1"
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}+ixp-${pkgver}
+ make DESTDIR=${pkgdir} install
+ install -Dm644 debian/file/wmii.desktop ${pkgdir}/usr/share/xsessions/${pkgname}.desktop
+ install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE
+}
diff --git a/community/wmii/fix-freetype-include.patch b/community/wmii/fix-freetype-include.patch
new file mode 100644
index 000000000..309d56d06
--- /dev/null
+++ b/community/wmii/fix-freetype-include.patch
@@ -0,0 +1,11 @@
+--- wmii+ixp-3.9.2/config.mk 2010-06-23 20:31:44.171778303 +0200
++++ wmii+ixp-3.9.2/config.mk~ 2010-06-23 20:28:03.285253275 +0200
+@@ -10,7 +10,7 @@
+ INCLUDE = $(PREFIX)/include
+
+ # Includes and libs
+-INCLUDES = -I. -I$(ROOT)/include -I$(INCLUDE) -I/usr/include
++INCLUDES = -I. -I$(ROOT)/include -I$(INCLUDE) -I/usr/include/ -I/usr/include/freetype2
+ LIBS = -L$(ROOT)/lib -L/usr/lib
+
+ TERMINAL = xterm