summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 63e9df07fdb655b8fa4fe3b479d7cdce4014af26 (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
# Maintainer: Mark Wagie <yochanan dot marqos at gmail dot com>
pkgname=battery-monitor-devel-git
_gitname=battery-monitor
pkgver=0.5.3.r34.gf7a83dd
pkgrel=8
pkgdesc='A utility tool, notifies user about charging, discharging and not charging state of the battery on Linux.'
arch=('any')
url="https://github.com/maateen/battery-monitor"
license=('GPL3')
depends=('acpi' 'python' 'python-gobject' 'libnotify' 'libappindicator-gtk3')
provides=("$_gitname")
conflicts=("$_gitname")
source=('git+https://github.com/maateen/battery-monitor.git#branch=devel')
sha256sums=('SKIP')

pkgver() {
 	cd "$srcdir/$_gitname"
 	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	cd "$srcdir/$_gitname"
	install -d "$pkgdir/"usr/{bin,share/battery-monitor}
	cp -a src/. "$pkgdir/usr/share/$_gitname"
	install -Dm755 "$_gitname" "$pkgdir/usr/bin/$_gitname"
	install -Dm644 "$_gitname-autostart.desktop" "$pkgdir/etc/xdg/autostart/$_gitname-autostart.desktop"
	install -Dm644 "$_gitname.desktop" "$pkgdir/usr/share/applications/$_gitname.desktop"
}