summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be2f4e0cbc90e8b92a31a669353ae7915c6b84a1 (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
# Maintainer: wincak <wincak@seznam.cz>
pkgname=threshy
pkgver=0.2
pkgrel=0
pkgdesc="ThinkPad battery threshold configuration using TLP and D-Bus"
arch=('x86_64')
url="https://gitlab.com/wincak/threshy"
license=('GPL')
#groups=()
depends=('tlp>=1.0' 'dbus>=1.12' 'qt5-base>=5.9')
makedepends=('cmake>=3.10')
install=
source=("git+https://gitlab.com/wincak/threshy.git#tag=v0.2")
md5sums=('SKIP')

prepare() {
	cd "$pkgname"
}

build() {
	cd "$pkgname"

        cmake -DCMAKE_INSTALL_PREFIX="/usr" CMakeLists.txt
        make
}

check() {
	cd "$pkgname"
	#make -k check
}

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