summaryrefslogtreecommitdiff
path: root/community/wmii/PKGBUILD
blob: 76d8a85a01239a084414b505ddc11ade277e1f5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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' 'mips64el')
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
}