summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Teibes2014-03-05 01:43:36 +0100
committerCarsten Teibes2014-03-05 01:43:36 +0100
commitb5e33567b023f7fc431c70670ce98034fec6e7f7 (patch)
treea20a6f04d93a844ab9962e210128bc42c9d7cfa6
downloadaur-b5e33567b023f7fc431c70670ce98034fec6e7f7.tar.gz
[add] redshift-git
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD41
-rw-r--r--redshift-git.install13
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ad84b70a7fa
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = redshift-git
+ pkgdesc = Adjusts the color temperature of your screen according to your surroundings (development version)
+ pkgver = 1.8.r30.ge26337d
+ pkgrel = 1
+ url = http://jonls.dk/redshift/
+ install = redshift-git.install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = python
+ depends = libxxf86vm
+ depends = geoclue
+ optdepends = gtk3: for redshift-gtk
+ optdepends = python-xdg: for redshift-gtk
+ optdepends = python-gobject: for redshift-gtk
+ optdepends = librsvg: for redshift-gtk
+ optdepends = hicolor-icon-theme: for redshift-gtk
+ provides = redshift
+ conflicts = redshift
+ source = redshift::git+https://github.com/jonls/redshift.git
+ md5sums = SKIP
+
+pkgname = redshift-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1a1f2bb29e0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: carstene1ns <url/mail: arch carsten-teibes de>
+# Contributor: Lara Maia <lara@craft.net.br>
+
+pkgname=redshift-git
+pkgver=1.8.r30.ge26337d
+pkgrel=1
+pkgdesc='Adjusts the color temperature of your screen according to your surroundings (development version)'
+arch=('i686' 'x86_64')
+url='http://jonls.dk/redshift/'
+license=('GPL3')
+depends=('libxxf86vm' 'geoclue')
+provides=('redshift')
+conflicts=('redshift')
+optdepends=('gtk3: for redshift-gtk'
+ 'python-xdg: for redshift-gtk'
+ 'python-gobject: for redshift-gtk'
+ 'librsvg: for redshift-gtk' # needs to be clarified
+ 'hicolor-icon-theme: for redshift-gtk')
+makedepends=('git' 'python') # python needed for redshift-gtk
+install=$pkgname.install
+source=(redshift::"git+https://github.com/jonls/redshift.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd redshift
+ git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./g'
+}
+
+build() {
+ cd redshift
+
+ ./bootstrap
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd redshift
+
+ make DESTDIR="$pkgdir" install
+}
diff --git a/redshift-git.install b/redshift-git.install
new file mode 100644
index 00000000000..b0d35d2f7f5
--- /dev/null
+++ b/redshift-git.install
@@ -0,0 +1,13 @@
+
+post_install() {
+ # redirect output, because command might not be available
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor > /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}