summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e3f2a5e9a52b295099da1f7ba577fb0338d02e32 (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
# Maintainer: zaps166 <spaz16 at wp dot pl>

_pkgname=xfce4-no-sleep-on-battery-lid-closed
pkgname=${_pkgname}-git
pkgver=r4.g2001ad0
pkgrel=1
pkgdesc="Don't suspend if you have external display connected when running on laptop's battery in Xfce4 desktop"
arch=('x86_64')
url='https://github.com/zaps166/xfce4-no-sleep-on-battery-lid-closed'
license=('Unlicense')
depends=('xfconf')
makedepends=('cmake')
source=("git+https://github.com/zaps166/xfce4-no-sleep-on-battery-lid-closed.git")
sha1sums=(SKIP)

pkgver() {
    cd ${_pkgname}
    echo r$(git rev-list --all --count).g$(git rev-parse --short HEAD)
}

build() {
    cd ${_pkgname}
    cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
    make
}

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