summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7bc8c66378854ad07890203bbe528c675e77fdb8 (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
40
# Maintainer: <sulami at peerwire dot org>, feel free to contact me there
# Contributor: Hugo Osvaldo Barrera <hugo@barrera.io>

pkgname=frankenwm-git
_gitname="FrankenWM"
pkgver=1.0.22
pkgrel=3
pkgdesc="Fast dynamic tiling window manager based on monsterwm-xcb"
url="https://github.com/sulami/FrankenWM"
arch=('i686' 'x86_64')
license=('custom:MIT/X')
depends=('xcb-util-wm' 'xcb-util-keysyms' 'libx11' 'libxcb' 'xcb-util')
makedepends=('git')
source=("git+https://github.com/sulami/FrankenWM.git")
md5sums=("SKIP")
conflicts=("${pkgname%-git}")

prepare() {
  cd "$srcdir/$_gitname"

  if [ -e $startdir/config.h ]; then
    msg "using custom config.h"
    cp ${startdir}/config.h .
  else
    msg "using default config.h"
  fi
}

build() {
  cd "$srcdir/$_gitname"
  make
}

package() {
  cd "$srcdir/$_gitname"
  make PREFIX=/usr DESTDIR="${pkgdir}" install

  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}