summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13fcf4c6f9186feea7e6dfb4900b6d34254e5ec6 (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
# Maintainer: mi544 (sd32 at protonmail.com)

pkgname=gummy-git
pkgver=0.5.2.r0.g7b69c9f
pkgrel=1
pkgdesc="Screen brightness/temperature manager for Linux/X11"
arch=('x86_64')
url="https://github.com/Fushko/gummy"
license=('GPL3')
depends=('libxcb' 'xcb-util-image' 'systemd-libs' 'sdbus-cpp' 'ddcutil')
makedepends=('git' 'cmake')
provides=('gummy')
conflicts=('gummy')
install="gummy.install"
source=("git+$url")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake \
    -B build \
    -S "${pkgname%-git}" \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    -DCMAKE_BUILD_TYPE='Release'
  cmake --build build --parallel
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}