summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 54dc18e1796f2b7cb214a41466ab12e98c51db35 (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: Stephen Smith <stephen304@gmail.com>
pkgname=lemonbar-clicks-git
_pkgname=bar
pkgver=1.3.0
pkgrel=1
pkgdesc="A lightweight xcb based bar with ported xft support, support to specify outputs, support for unlimited clickable areas and support for longer input."
arch=('i686' 'x86_64')
url="https://github.com/ph111p/bar"
license=('MIT')
depends=('libxcb' 'libxft' 'libx11')
makedepends=('git')
provides=('bar-aint-recursive' 'lemonbar')
conflicts=('bar-aint-recursive' 'lemonbar')
source=("$_pkgname::git+https://github.com/ph111p/bar.git#branch=xft-port")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  echo $(git describe --abbrev=0 --tags).$(git rev-list --count $(git describe --abbrev=0 --tags)..HEAD)
}

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

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