summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e387d54c0ee71cdedad6c70bbc714ba7209a17a0 (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
# Maintainer: Philipp Uhl <git@ph-uhl.com>

pkgname=bspwm-rounded-corners-git
pkgver=0.9.10.r12.g98e9642
pkgrel=2
pkgdesc="A tiling window manager based on binary space partitioning with rounded corners"
url="https://github.com/phuhl/bspwm-rounded"
arch=('x86_64')
license=('custom:BSD')
depends=('bash' 'xcb-util' 'xcb-util-wm' 'xcb-util-keysyms')
makedepends=('git')
optdepends=('sxhkd-git: to define keyboard and pointer bindings'
	    'bar-aint-recursive: for the example panel'
	    'xtitle-git: for the example panel'
	    'sutils-git: for the example panel'
	    'terminus-font: for the example panel'
	    'python3: for some scripting examples')
source=("$pkgname::git://github.com/phuhl/bspwm-rounded.git#branch=master")
md5sums=('SKIP')
provides=("bspwm")
conflicts=("bspwm")

pkgver() {
  cd $pkgname
  git describe --long --tags | 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"
}