summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca15b561a5878ca4db9e1a49572366fa2773510d (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
# Maintainer: thorsten w. <p@thorsten-wissmann.de>
pkgname=herbstluftwm-git
_pkgname=herbstluftwm
pkgver=0.6.2.r77.g1f6066b
pkgrel=1
epoch=1
pkgdesc="Manual tiling window manager for X"
arch=('i686' 'x86_64')
url="http://herbstluftwm.org"
license=('BSD')
depends=( 'glib2>=2.24' 'libx11' 'libxinerama')
optdepends=(
        'bash: needed by most scripts'
        'xterm: used by the default autostart'
        'dmenu: needed by some scripts'
        'dzen2: needed by panel.sh'
        'dzen2-xft-xpm-xinerama-git: view icons as tags'
    )
makedepends=('git' 'asciidoc')
provides=($_pkgname)
conflicts=($_pkgname)
source=("$pkgname::git://github.com/herbstluftwm/$_pkgname")
md5sums=( SKIP )

pkgver() {
  cd ${pkgname}
  git describe --tags --long | sed -r 's,^[^0-9]*,,;s,([^-]*-g),r\1,;s,[-_],.,g'
}

build() {
  cd ${pkgname}
  make PREFIX=/usr
}

package() {
  cd ${pkgname}
  make PREFIX=/usr DESTDIR="$pkgdir" install
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}