summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ff542cc62cf06802222f9abb3f8f9f5c3b3fa2a (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
# Maintainer: David Schury <dasc@posteo.de>

pkgname=battery-checker-git
_pkgname=battery-checker
pkgver=1.1
pkgrel=1
pkgdesc="Script determining if the laptop battery is low"
url="https://gitlab.com/daersc/battery-checker"
arch=('any')
license=('GPL3')
depends=('libnotify')
conflicts=('battery-checker')
provides=('battery-checker')
source=("git+https://gitlab.com/daersc/$_pkgname.git")
md5sums=('SKIP')

pkgver() {
	cd $srcdir/$_pkgname
	git describe --tags | sed -e 's|-|.|g' -e 's|^v||'
}

package() {
	mkdir -p $pkgdir/usr/bin
	cp $srcdir/$_pkgname/check-battery $pkgdir/usr/bin
}