2021-11-30 12:06:51 +01:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
|
|
|
# Contributor: David Runge <dvzrv@archlinux.org>
|
2020-07-17 22:56:19 +02:00
|
|
|
|
|
|
|
pkgname=gammastep-git
|
2021-11-30 12:06:51 +01:00
|
|
|
pkgver=2.0.7.r1.gc5c3ac0
|
2020-07-17 22:56:19 +02:00
|
|
|
pkgrel=1
|
2021-11-30 12:06:51 +01:00
|
|
|
pkgdesc="Adjust the color temperature of your screen according to your surroundings."
|
2020-07-17 22:56:19 +02:00
|
|
|
arch=('x86_64')
|
2021-11-30 12:06:51 +01:00
|
|
|
url="https://gitlab.com/chinstrap/gammastep"
|
2020-07-17 22:56:19 +02:00
|
|
|
license=('GPL3')
|
2021-11-30 12:06:51 +01:00
|
|
|
provides=('gammastep')
|
|
|
|
conflicts=('gammastep')
|
|
|
|
depends=('geoclue' 'glibc' 'hicolor-icon-theme' 'libdrm' 'libx11' 'libxcb'
|
|
|
|
'libxxf86vm' 'wayland')
|
|
|
|
makedepends=('git' 'glib2' 'intltool' 'python' 'systemd')
|
2020-07-17 22:56:19 +02:00
|
|
|
optdepends=('python-gobject: for gammastep-indicator'
|
|
|
|
'python-xdg: for gammastep-indicator'
|
|
|
|
'gtk3: for gammastep-indicator')
|
2021-11-30 12:06:51 +01:00
|
|
|
source=("git+https://gitlab.com/chinstrap/gammastep.git")
|
|
|
|
sha256sums=('SKIP')
|
2020-07-17 22:56:19 +02:00
|
|
|
|
|
|
|
pkgver() {
|
2021-11-30 12:06:51 +01:00
|
|
|
cd gammastep
|
|
|
|
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
2020-07-17 22:56:19 +02:00
|
|
|
}
|
|
|
|
|
2021-11-30 12:06:51 +01:00
|
|
|
prepare() {
|
|
|
|
cd "$srcdir"/gammastep
|
2020-07-17 22:56:19 +02:00
|
|
|
./bootstrap
|
2021-11-30 12:06:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir"/gammastep
|
2020-07-17 22:56:19 +02:00
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2021-11-30 12:06:51 +01:00
|
|
|
check() {
|
|
|
|
cd "$srcdir"/gammastep
|
|
|
|
make -k check
|
2020-07-17 22:56:19 +02:00
|
|
|
}
|
|
|
|
|
2021-11-30 12:06:51 +01:00
|
|
|
package() {
|
|
|
|
depends+=('libgio-2.0.so' 'libgobject-2.0.so' 'libglib-2.0.so')
|
|
|
|
cd "$srcdir"/gammastep
|
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
install -vDm 644 {CONTRIBUTING,NEWS,README}.md \
|
|
|
|
-t "${pkgdir}/usr/share/doc/${pkgname}"
|
|
|
|
}
|