summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3e6f417743a8fab51db36d51951985a4ce63d13 (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: Matthew Lyon <matthew@lyon.systems>
pkgname=tired-git
pkgver=9f0cce9
pkgrel=1
pkgdesc="A screen dimmer for Wayland, replicating macOS grace period and sleep dimming"
arch=('x86_64')
url="https://github.com/matthewishere/tired"
license=('MIT')
depends=('wayland' 'wayland-protocols' 'cmake' 'gcc' 'glibc' 'make')  # Required dependencies
makedepends=('git')
provides=('tired')
conflicts=('tired')

source=("git+https://github.com/matthewishere/tired.git")
sha256sums=('SKIP')  # Use 'SKIP' because we're cloning from Git

pkgver() {
    cd tired
    git describe --tags --always | sed 's/^v//;s/-/./g'
}

build() {
    cd tired
    mkdir -p build
    cd build
    cmake ..
    make
}

package() {
    cd tired/build
    make DESTDIR="$pkgdir" install
}