PKGBUILD 2.45 KB
Newer Older
1
2
3
# Maintainer: Thorsten Töpper <atsutane-tu@freethoughts.de>

pkgname=i3-wm
4
_pkgsourcename=i3
Thorsten Töpper's avatar
Thorsten Töpper committed
5
pkgver=4.8
6
pkgrel=3
Thorsten Töpper's avatar
Thorsten Töpper committed
7
pkgdesc='An improved dynamic tiling window manager'
8
arch=('i686' 'x86_64')
Thorsten Töpper's avatar
Thorsten Töpper committed
9
url='http://i3wm.org/'
10
license=('BSD')
Thorsten Töpper's avatar
Thorsten Töpper committed
11
12
replaces=('i3' 'i3bar')
groups=('i3')
Thorsten Töpper's avatar
Thorsten Töpper committed
13
14
depends=('xcb-util-cursor' 'xcb-util-keysyms' 'xcb-util-wm' 'libev' 'yajl'
         'startup-notification' 'pango')
15
makedepends=('bison' 'flex')
16
optdepends=('dmenu: As menu.'
Thorsten Töpper's avatar
Thorsten Töpper committed
17
            'i3lock: For locking your screen.'
18
19
20
            'i3status: To display systeminformation with a bar.'
            'perl-anyevent-i3: Features like saving the layout.'
            'perl-json-xs: Features like saving the layout.')
21
options=('docs' '!strip')
Thorsten Töpper's avatar
Thorsten Töpper committed
22
source=("http://i3wm.org/downloads/${_pkgsourcename}-${pkgver}.tar.bz2"
23
24
        "http://i3wm.org/downloads/${_pkgsourcename}-${pkgver}.tar.bz2.asc"
        'bugfix_dont_focus_unmapped_container_on_manage.patch')
Thorsten Töpper's avatar
Thorsten Töpper committed
25
md5sums=('4151e8e81fdc78b32a7cb953f67e3bef'
26
27
         'SKIP'
         '2601c1d3fa5e45bc637a82486fdc5be6')
28
29

build() {
30
31
  cd "$srcdir/$_pkgsourcename-$pkgver"
  
32
33
  patch -p1 < "$srcdir/bugfix_dont_focus_unmapped_container_on_manage.patch"

Thorsten Töpper's avatar
Thorsten Töpper committed
34
  # In order to avoid problems with bison use only a single process
Thorsten Töpper's avatar
Thorsten Töpper committed
35
  MAKEFLAGS="-j1"
36
  make
37
38
39
}

package() {
40
  cd "$srcdir/$_pkgsourcename-$pkgver"
Laurent Carlier's avatar
Laurent Carlier committed
41
42

  make DESTDIR="$pkgdir/" install
43
  
44
  install -Dm644 man/i3.1 \
Laurent Carlier's avatar
Laurent Carlier committed
45
    ${pkgdir}/usr/share/man/man1/i3.1
Thorsten Töpper's avatar
Thorsten Töpper committed
46
  install -Dm644 man/i3bar.1 \
47
48
49
    ${pkgdir}/usr/share/man/man1/i3bar.1
  install -Dm644 man/i3-config-wizard.1 \
    ${pkgdir}/usr/share/man/man1/i3-config-wizard.1
50
  install -Dm644 man/i3-input.1 \
Laurent Carlier's avatar
Laurent Carlier committed
51
    ${pkgdir}/usr/share/man/man1/i3-input.1
52
53
54
55
56
57
  install -Dm644 man/i3-msg.1 \
    ${pkgdir}/usr/share/man/man1/i3-msg.1
  install -Dm644 man/i3-migrate-config-to-v4.1 \
    ${pkgdir}/usr/share/man/man1/i3-migrate-config-to-v4.1
  install -Dm644 man/i3-nagbar.1 \
    ${pkgdir}/usr/share/man/man1/i3-nagbar.1
Thorsten Töpper's avatar
Thorsten Töpper committed
58
59
60
61
62
63
64
65
66
67
68
  install -Dm644 man/i3-dmenu-desktop.1 \
    ${pkgdir}/usr/share/man/man1/i3-dmenu-desktop.1
  install -Dm644 man/i3-dump-log.1 \
    ${pkgdir}/usr/share/man/man1/i3-dump-log.1
  install -Dm644 man/i3-sensible-editor.1 \
    ${pkgdir}/usr/share/man/man1/i3-sensible-editor.1
  install -Dm644 man/i3-sensible-pager.1 \
    ${pkgdir}/usr/share/man/man1/i3-sensible-pager.1
  install -Dm644 man/i3-sensible-terminal.1 \
    ${pkgdir}/usr/share/man/man1/i3-sensible-terminal.1

69
  install -Dm644 LICENSE \
Laurent Carlier's avatar
Laurent Carlier committed
70
    ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
71
72
73
74
75
  
  make clean
}

# vim:set ts=2 sw=2 et: