summaryrefslogtreecommitdiff
path: root/nonprism/redshift
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-04-25 14:17:30 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-04-25 14:17:30 -0300
commit0298254050c2a11f5aa6d98bb829f4902ac1eaca (patch)
treee7deaa68fae0c83be266b012328473aa83542921 /nonprism/redshift
parent8d54504060b20bae0153f85154bb5179c022dc20 (diff)
redshift: add new package to [nonprism]
Diffstat (limited to 'nonprism/redshift')
-rw-r--r--nonprism/redshift/PKGBUILD35
-rw-r--r--nonprism/redshift/redshift.install11
2 files changed, 46 insertions, 0 deletions
diff --git a/nonprism/redshift/PKGBUILD b/nonprism/redshift/PKGBUILD
new file mode 100644
index 000000000..9bf933d90
--- /dev/null
+++ b/nonprism/redshift/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer (Arch): Lukas Fleischer <lfleischer@archlinux.org>
+# Contributor (Arch): Geoffrey Teale <tealeg@stop-squark>
+# Contributor (Arch): Mark, Huo Mian <markhuomian[at]gmail[dot]com>
+# Contributor (Arch): Biginoz <biginoz a free dot fr>
+# Contributor (Arch): Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=redshift
+pkgver=1.11
+pkgrel=2.nonprism1
+pkgdesc='Adjusts the color temperature of your screen according to your surroundings, without geoclue2 support'
+arch=('i686' 'x86_64')
+url='http://jonls.dk/redshift/'
+license=('GPL3')
+depends=('libdrm' 'libxcb' 'libxxf86vm')
+optdepends=('python-gobject: for redshift-gtk'
+ 'python-xdg: for redshift-gtk'
+ 'librsvg: for redshift-gtk')
+makedepends=('intltool' 'python')
+install='redshift.install'
+source=("https://github.com/jonls/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz")
+md5sums=('a31d768b0348c5202e58612855a9027e')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr --enable-drm --enable-randr --enable-vidmode \
+ --with-systemduserunitdir=/usr/lib/systemd/user
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/nonprism/redshift/redshift.install b/nonprism/redshift/redshift.install
new file mode 100644
index 000000000..d59dca6e8
--- /dev/null
+++ b/nonprism/redshift/redshift.install
@@ -0,0 +1,11 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}