summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2da65bfb6ee3b5bcfc9ca45a7df612d7c1945e20 (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
# Maintainer: Lex Black <autumn-wind@web.de>
# Contributor: Firegem <mrfiregem [at] protonmail [dot] ch>

pkgname=wlopm-git
pkgver=1.0.0.r1.g41bc661
pkgrel=1
pkgdesc="Wayland output power management."
arch=('x86_64')
url="https://git.sr.ht/~leon_plickat/wlopm"
license=('GPL-3.0-only')
depends=(wayland{,-protocols})
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://git.sr.ht/~leon_plickat/wlopm')
md5sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${pkgname%-git}"
  make PREFIX='/usr' DESTDIR="$pkgdir"
}

package() {
  cd "${pkgname%-git}"
  make install PREFIX='/usr' DESTDIR="$pkgdir"
}