Browse Source

Added Arch Linux PKGBUILD, fixes #56

Fredrik Svantesson 6 years ago
parent
commit
8f39b040d4
1 changed files with 31 additions and 0 deletions
  1. 31
    0
      archlinux/PKGBUILD

+ 31
- 0
archlinux/PKGBUILD View File

@@ -0,0 +1,31 @@
1
+# Maintainer: Fredrik Haikarainen <fredrik.haikarainen@gmail.com>
2
+
3
+pkgname=light
4
+pkgver=1.1.2.r61.g9d8ca6b
5
+pkgrel=1
6
+pkgdesc='Application to control hardware lights, backlights, leds.'
7
+arch=('i686' 'x86_64')
8
+url="https://github.com/haikarainen/light"
9
+license=('GPL3')
10
+makedepends=('git')
11
+conflicts=('light-git')
12
+provides=('light-git')
13
+source=('git+https://github.com/haikarainen/light.git')
14
+sha256sums=('SKIP')
15
+
16
+pkgver() {
17
+  cd "$srcdir/light"
18
+  git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
19
+}
20
+
21
+build(){
22
+  cd "$srcdir/light"
23
+  ./autogen.sh
24
+  ./configure --with-udev --prefix=/usr
25
+  make
26
+}
27
+
28
+package(){
29
+  cd "$srcdir/light"
30
+  make DESTDIR="$pkgdir/" install
31
+}