summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorClayton Craft2017-01-06 17:13:40 -0800
committerClayton Craft2017-01-06 17:13:40 -0800
commit26a8f91f47778e50ac4f6019a89016d89fa21f96 (patch)
tree165f199062bd9af19f1936063d9319d582141b17
downloadaur-26a8f91f47778e50ac4f6019a89016d89fa21f96.tar.gz
initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD31
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..85d1a5322ea
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = autolight
+ pkgdesc = A daemon for controlling display backlight using an ambient light sensor
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://github.com/craftyguy/autolight
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ depends = python
+ depends = light
+ provides = autolight
+ conflicts = autolight
+ source = https://github.com/craftyguy/autolight/archive/1.0.tar.gz
+ md5sums = 02ceae3913a3be3f2a612dc129f66c7f
+
+pkgname = autolight
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b1a697a65c9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Clayton Craft <clayton@craftyguy.net>
+pkgname=autolight
+pkgver=1.0
+pkgrel=1
+pkgdesc="A daemon for controlling display backlight using an ambient light sensor"
+arch=('i686' 'x86_64')
+url="https://github.com/craftyguy/autolight"
+license=('GPL3')
+depends=('python' 'light')
+provides=("${pkgname}")
+conflicts=("${pkgname}")
+source=("https://github.com/craftyguy/autolight/archive/${pkgver}.tar.gz")
+md5sums=('02ceae3913a3be3f2a612dc129f66c7f')
+prepare() {
+ cd "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -m755 -D "$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -m644 -D "$srcdir/$pkgname-$pkgver/config" "${pkgdir}/etc/$pkgname/config"
+}
+