diff options
author | Simone Gaiarin | 2017-05-07 14:05:53 +0200 |
---|---|---|
committer | Simone Gaiarin | 2017-05-07 14:12:33 +0200 |
commit | 08be9bff58a36f644a067ce1ed5a594246493711 (patch) | |
tree | 8e17cf8f98a3dddaf2bf0b898106f474e2c2fbab | |
download | aur-08be9bff58a36f644a067ce1ed5a594246493711.tar.gz |
Add initial version
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 38 | ||||
-rw-r--r-- | redshift.install | 10 |
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..847568efdec3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = plasma5-applets-redshift-git + pkgdesc = Redshift plasmoid provides a configuration interface and allows to start/stop Redshift daemon either manually or automatically based on the current activity. Plasma5 development version. + pkgver = r188.3dc240e + pkgrel = 1 + url = http://simgunz.org/projects/redshift-plasmoid/ + install = redshift.install + arch = any + license = GPL + makedepends = git + makedepends = extra-cmake-modules + depends = plasma-workspace + depends = redshift + source = git+https://github.com/simgunz/redshift-plasmoid.git + md5sums = SKIP + +pkgname = plasma5-applets-redshift-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b476f071dcde --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Simone Gaiarin <simgunz@gmail.com> + +pkgname=plasma5-applets-redshift-git +_gitpkgname=redshift-plasmoid +pkgver=r188.3dc240e +pkgrel=1 +pkgdesc='Redshift plasmoid provides a configuration interface and allows to start/stop Redshift daemon either manually or automatically based on the current activity. Plasma5 development version.' +arch=('any') +url='http://simgunz.org/projects/redshift-plasmoid/' +license=('GPL') +depends=('plasma-workspace' 'redshift') +makedepends=('git' 'extra-cmake-modules') +install='redshift.install' +screenshot='http://simgunz.org/wp-content/uploads/2012/10/redshift-scr-1.png' +source=("git+https://github.com/simgunz/${_gitpkgname}.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$_gitpkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/${_gitpkgname}" + git checkout plasma5-porting + cd ${srcdir} + mkdir -p "build" + cd build + cmake ../$_gitpkgname \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON +} + +package() { + cd "${srcdir}/build" + make DESTDIR="$pkgdir" install +} diff --git a/redshift.install b/redshift.install new file mode 100644 index 000000000000..37e5766aa7aa --- /dev/null +++ b/redshift.install @@ -0,0 +1,10 @@ +post_install() { + echo -------------------------------------------------------- + echo After install, reboot or run redshiftautostart manually + echo to start using the plasmoid. + echo -------------------------------------------------------- +} + +post_upgrade () { + post_install +} |