summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94f38f7800eed45178e8323166526087ce49484d (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: Jonathan Steel <jsteel at archlinux.org>

pkgname=yabar-git
_pkgname=yabar
pkgver=0.4.0.r179.ga0d3fdf
pkgrel=1
pkgdesc="A modern and lightweight status bar for X window managers"
arch=('i686' 'x86_64')
url="https://github.com/geommer/yabar"
license=('MIT')
depends=('alsa-lib' 'pango' 'libconfig' 'xcb-util-wm' 'gdk-pixbuf2' 'wireless_tools' 'libxkbcommon-x11')
optdepends=('playerctl: playerctl integration')
makedepends=('git' 'asciidoc')
provides=('yabar')
conflicts=('yabar')
source=(git+https://github.com/geommer/yabar.git)
md5sums=('SKIP')

pkgver() {
  cd $_pkgname

  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $_pkgname
  if pkg-config --exists playerctl-1.0; then
    make PLAYERCTL=1
  else
    make
  fi
}

package() {
  cd $_pkgname

  make DESTDIR="$pkgdir" install
}