summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2d2e67943d09c09735926880ad68c136e9080f6 (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
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Colin Jones (xentalion) <colin@ergoeclectic.com>
# Contributor: Valère Monseur <valere dot monseur at ymail dot com>

_pkgname=cbatticon
pkgname=cbatticon-gtk3-git
pkgver=1.5.0.r4.g1e133ca
pkgrel=1
pkgdesc="A lightweight and fast battery icon that sits in your system tray"
arch=('i686' 'x86_64')
url="https://github.com/valr/cbatticon"
license=('GPL2')
depends=('libnotify' 'gtk3')
makedepends=('git')
provides=('cbatticon')
conflicts=('cbatticon')

source=("$pkgname::git+https://github.com/valr/cbatticon.git")
md5sums=('SKIP')

pkgver() {
  cd ${pkgname}
  git describe --long --tags | sed -r 's,^[^0-9]*,,;s,-([0-9][0-9]*),.r\1,;s,[-_],.,g'
}

build() {
  cd ${pkgname}
  make WITH_NOTIFY=1 WITH_GTK3=1
}

package() {
  cd ${pkgname}
  make PREFIX="${pkgdir}/usr" install
}