summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bddb110a927bb5a53a917b07953123a800c8bf3f (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: Ivan Krivosheev <py.krivosheev@gmail.com>

pkgname=acpi-backlight-notify
pkgver=1.0.0
pkgrel=1
pkgdesc="ACPI backlight notification daemon"
arch=(x86_64)
url="https://github.com/ikrivosheev/acpi-backlight-notify"
license=(MIT)
depends=(libnotify glib2)
makedepends=(cmake)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
md5sums=('b28b2a1e328d9e67b5889c5529fa3eb4')

build() {
    export CFLAGS+=" ${CPPFLAGS}"
    export CXXFLAGS+=" ${CPPFLAGS}"

    source_dir="${pkgname}-${pkgver}"
    cmake -B build -S "${source_dir}" \
        -DCMAKE_INSTALL_PREFIX='/usr' \
        -Wno-dev
    cmake --build build
}

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