summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a25189e982990f106d134fdcee09f9ca22396b42 (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
# Maintainer: Brian Bidulock <bidulock@openss7.org>
pkgname='2bwm-git'
pkgver=0.3.r0.g11cd945
pkgrel=1
pkgdesc="A fast floating window manager"
arch=('i686' 'x86_64')
url="https://github.com/venam/2bwm"
license=('ISC')
provides=('2bwm')
conflicts=('2bwm' 'mcwm' 'mcwm-git') # due to /usr/bin/hidden program
depends=('xcb-util-wm' 'xcb-util-keysyms' 'xcb-util-xrm')
makedepends=('git' 'xcb-util')
source=("$pkgname::git+https://github.com/venam/2bwm.git" '2bwm.desktop' '2bwm.copying')
md5sums=('SKIP'
         '4342d9210effbe4bfb58722f4275aa5c'
         'adaee5c7e455ba15e0ca9a2692464253')

pkgver() {
  cd $pkgname
  git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
  cd $pkgname
  make PREFIX=/usr
}
package() {
  cd $pkgname
  make DESTDIR="$pkgdir" PREFIX=/usr MANPREFIX=/usr/share/man install
  install -Dm644 "$srcdir/2bwm.desktop" "$pkgdir/usr/share/xsessions/2bwm.desktop"
  install -Dm644 "$srcdir/2bwm.copying" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}