diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1029d96f5fbd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = light-git + pkgdesc = Program to easily change brightness on backlight-controllers. + pkgver = v0.9.r1.g8dfe104 + pkgrel = 1 + url = https://github.com/haikarainen/light + arch = any + license = GPL3 + makedepends = git + provides = lightscript + provides = light + conflicts = lightscript + conflicts = light + replaces = lightscript + source = git+https://github.com/haikarainen/light.git + md5sums = SKIP + +pkgname = light-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..03bf11ce3837 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Fredrik Haikarainen <fredrik.haikarainen@gmail.com> +pkgname=light-git +pkgver=v0.9.r1.g8dfe104 +pkgrel=1 +pkgdesc='Program to easily change brightness on backlight-controllers.' +arch=('any') +url="https://github.com/haikarainen/light" +license=('GPL3') +makedepends=('git') +conflicts=('lightscript' 'light') +provides=('lightscript' 'light') +replaces=('lightscript') +source=('git+https://github.com/haikarainen/light.git') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/light" + git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' +} + +build(){ + cd "$srcdir/light" + make +} + +package(){ + cd "$srcdir/light" + make DESTDIR="$pkgdir/" install +} |