blob: bf63e2b6b0d3b027c2f854acaebc27dc2e44c6a5 (
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
39
40
|
# 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-gtk3-git
_pkgname=cbatticon
pkgver=1.6.13.r11.g3d832c7
pkgrel=1
pkgdesc='Lightweight battery icon for the system tray'
arch=(x86_64 i686 armv7h)
url='https://github.com/valr/cbatticon'
license=(GPL2)
depends=(gtk3 libnotify)
makedepends=('git')
provides=("${_pkgname}=${pkgver%%.r*}-${pkgrel}")
conflicts=("${_pkgname}")
source=("$pkgname::git+https://github.com/valr/cbatticon.git")
sha256sums=('SKIP')
prepare() {
cd $pkgname
sed -i -e "s;-Wno-format;$CFLAGS;" Makefile
}
pkgver() {
cd $pkgname
git describe --long --tags | sed -r 's,^[^0-9]*,,;s,-([0-9][0-9]*),.r\1,;s,[-_],.,g'
}
build() {
make -C "$pkgname" WITH_NOTIFY=1 WITH_GTK3=1
}
package() {
make -C "$pkgname" PREFIX="$pkgdir/usr" install
}
# getver: github.com/valr/cbatticon
# vim: ts=2 sw=2 et:
|