summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d538571294f7a3b1cb491bd37b477cc859bc270 (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: Thomas Voss <mail@thomasvoss.com>
pkgname=clux-git
pkgver=1.0.1.r1.d0c0c7b
pkgrel=1
pkgdesc="Command-line utility to interact with screen brightness"
arch=('x86_64' 'i686')
url="https://git.thomasvoss.com/lux"
license=('BSD')
depends=('liblux')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git://git.thomasvoss.com/lux.git")
b2sums=('SKIP')

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

build() {
	cd ${pkgname%-git}
	make
}

package() {
	cd ${pkgname%-git}
	make DESTDIR="$pkgdir" PREFIX=/usr install
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
	install -Dm644 README.md "$pkgdir/usr/share/doc/${pkgname%-git}/README.md"
}