blob: 777e84bdf87ffc8ad2b2b4bdda2c91492ef66039 (
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
|
# Maintainer: zaps166 <spaz16 at wp dot pl>
_pkgname=mate-no-sleep-on-battery-lid-closed
pkgname=${_pkgname}-git
pkgver=r2.g1c6ee3e
pkgrel=1
pkgdesc="Don't suspend if you have external display connected when running on laptop's battery in MATE desktop"
arch=('x86_64')
url='https://github.com/zaps166/mate-no-sleep-on-battery-lid-closed'
license=('Unlicense')
makedepends=('cmake')
source=("git+https://github.com/zaps166/mate-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
}
|