blob: 99af3faded9f3e88c34ccf0d2af6da74b283263e (
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
35
36
37
38
39
40
41
|
# Maintainer: psi4j <116757358+psi4j@users.noreply.github.com>
pkgname=sunsetr
pkgver=0.12.3
pkgrel=1
pkgdesc="Automatic blue light filter for Hyprland, Niri, and everything Wayland"
arch=('x86_64')
url="https://github.com/psi4j/sunsetr"
license=('MIT')
depends=('wayland')
makedepends=('rust' 'cargo')
provides=('sunsetr')
conflicts=('sunsetr-bin' 'sunsetr-git')
replaces=('sunsetr-git-debug')
options=('!debug')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('1b9425820ba52a26d68837ab2cc8030c0b5981b590cc13ff08c4ac0c854018b6')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export SUNSETR_VERSION="$pkgver"
cargo build --release --locked
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 "target/release/${pkgname}" \
"${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "${pkgname}.service" \
"${pkgdir}/usr/lib/systemd/user/${pkgname}.service"
install -Dm644 "README.md" \
"${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
# vim:set ts=4 sw=4 et:
|