summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c2f67363647f16b63ad5d36d0bdb4570c083f7c6 (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
# Maintainer: Canmi21 <9997200@qq.com>
# Contributor: Canmi(Canmi21)

pkgname=hyprlight
pkgver=1.0.0
pkgrel=1
pkgdesc="Brightness control utility for Hyprland"
arch=('x86_64')
url="https://github.com/canmi21/hyprlight"
license=('MIT')
depends=('glibc' 'brightnessctl')
makedepends=('cargo')

source=("git+https://github.com/canmi21/hyprlight.git#branch=master" 
        "https://raw.githubusercontent.com/canmi21/hyprlight/master/LICENSE")

sha256sums=('SKIP' 'SKIP')

prepare() {
  cd "$srcdir"
  mv hyprlight hyprlight-$pkgver
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  cargo build --release
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -Dm755 target/release/hyprlight "$pkgdir/usr/bin/hyprlight"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}