summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb5a59fe13ec2794e1aa78dfc090485a2067a4f5 (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
# Maintainer: Thomas "Ventto" Venriès <thomas.venries@gmail.com>

pkgname=lux
pkgver=1.0
pkgrel=1
pkgdesc='Bash script to easily control brightness on backlight controllers.'
arch=('any')
url="https://github.com/Ventto/${pkgname}.git"
license=('GPL3')
depends=('bash')
provides=("${pkgname}")
conflicts=("${pkgname}")
makedepends=('help2man')
source=("https://github.com/Ventto/lux/archive/v${pkgver}.tar.gz")
sha256sums=('93a2e5b4d94c701d067a0800acbca31a53dd1f9429196c01510748ef68ddbd05')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  help2man -h -h -v -v  src/${pkgname}.sh | gzip - > ${pkgname}.1.gz
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
  install -Dm644 ${pkgname}.1.gz ${pkgdir}/usr/share/man/man1/${pkgname}.1.gz
  install -Dm644 rules.d/99-${pkgname}.rules ${pkgdir}/etc/udev/rules.d/99-${pkgname}.rules
  install -Dm755 src/${pkgname}.sh ${pkgdir}/usr/bin/${pkgname}
}