summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e364872e96a1a6d039f6ddf1b1c9cbd05377311 (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
42
43
44
# Maintainer: iboyperson <iboyperson@gmail.com>

pkgname=plasma5-applets-caffeine-plus
_reponame=plasma-applet-caffeine-plus
pkgver=1.4
pkgrel=3
pkgdesc="Disable screensaver and auto suspend"
arch=('i686' 'x86_64')
url="https://github.com/qunxyz/plasma-applet-caffeine-plus"
license=('GPL2')
makedepends=(
	gcc
	make
	cmake
	extra-cmake-modules
	pkg-config
	qconf
	plasma-framework5
)
provides=("plasma5-applets-caffeine-plus")
conflicts=("plasma5-applets-caffeine-plus")
source=("https://github.com/qunxyz/$_reponame/archive/v$pkgver.tar.gz")
sha256sums=('f15ac283d5adbdbd909dc76b258aa406b7ba05d0156bef76c9632ef7da67ce8f')

prepare() {
	cd "$srcdir/$_reponame-$pkgver"
	
	mkdir -p build
}

build() {
	cd "$srcdir/$_reponame-$pkgver"
	cd build
	
	cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
	make
}

package() {
	cd "$srcdir/$_reponame-$pkgver"
	cd build

	make DESTDIR="$pkgdir/" install
}