Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b75107
commit 295007b
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |