summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b361951959b67d543ee7f4eff8b598f42f0dce5 (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
41
# Maintainer: Ved Patil <vedpatil611@gmail.com>
pkgname=low-battery-warning-git
pkgver=0.2.r12f678230
pkgrel=2
epoch=
pkgdesc="Light weight low battery warning notification"
arch=('x86_64')
url="https://github.com/vedpatil611/low-battery-warning"
license=('MIT')
groups=()
depends=('libnotify')
makedepends=('gcc' 'make' 'git')
checkdepends=()
optdepends=()
provides=('low-battery-warning')
conflicts=('low-battery-warning')
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

pkgver() {
        cd "${_pkgname}"
        printf "0.2.r%s%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd low-battery-warning
	make
}

package() {
	cd low-battery-warning
	make prefix=/usr DESTDIR="$pkgdir/" install
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}