Skip to content

Commit

Permalink
Add redshift-scheduler PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
spantaleev committed Mar 1, 2013
1 parent 8b75107 commit 295007b
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.rst
Expand Up @@ -31,6 +31,17 @@ AUR: https://aur.archlinux.org/packages.php?ID=57007

----------------------------------------------------------------

redshift-scheduler
------------------

Rule-based screen temperature changer (like `redshift <http://jonls.dk/redshift/>`_)

Homepage: https://github.com/spantaleev/redshift-scheduler

AUR: https://aur.archlinux.org/packages/redshift-scheduler/

----------------------------------------------------------------

sftpman
-------

Expand Down
43 changes: 43 additions & 0 deletions redshift-scheduler/PKGBUILD
@@ -0,0 +1,43 @@
# Maintainer: Slavi Pantaleev <s.pantaleev at gmail.com>

pkgname=redshift-scheduler
pkgver=1.0.0
pkgrel=1
pkgdesc="Rule-based screen temperature changer (like redshift)"
arch=('any')
url="https://github.com/spantaleev/redshift-scheduler"
license=('GPL3')
depends=('redshift' 'glib2>=2.34' 'libgee')
makedepends=('git' 'vala')

git_location="git://github.com/spantaleev/redshift-scheduler.git"
git_branch=$pkgver

build() {
cd "$srcdir"
msg "Connecting to GIT server...."

if [ -d $pkgname ] ; then
cd $pkgname
# Switch back to master as we're now on a tagged branch
git checkout master
git pull origin
msg "The local files are updated."
git checkout $git_branch
else
git clone $git_location $pkgname
cd $pkgname
git checkout $git_branch
fi

msg "GIT checkout done"
}

package() {
cd "$srcdir/$pkgname"

/bin/bash build.sh

install -Dm 644 $srcdir/$pkgname/resources/rules.conf.dist $pkgdir/usr/share/redshift-scheduler/rules.conf
install -Dm 755 $srcdir/$pkgname/build/redshift-scheduler $pkgdir/usr/bin/redshift-scheduler
}

0 comments on commit 295007b

Please sign in to comment.