summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d914b9d3632f89076445f2db975834368b46b13 (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: Doridian <archlinux at doridian dot net>

pkgname=dimland-git
pkgver=r36.3934c32
pkgrel=3
pkgdesc='Wayland screen dimmer'
arch=('any')
url='https://github.com/keifufu/dimland.git'
license=('MIT')
makedepends=('git' 'cargo')
source=("${pkgname}::git+https://github.com/keifufu/dimland.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${pkgname}"
  cargo build --locked --release --target-dir target
}

package() {
  cd "${srcdir}/${pkgname}"
  install -Dm755 target/release/dimland "${pkgdir}/usr/bin/dimland"
}

# vim:set ts=2 sw=2 et: