archlinux-pkgbuilds/gammastep-git/PKGBUILD

50 lines
1.3 KiB
Text
Raw Normal View History

# 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
pkgver=2.0.7.r1.gc5c3ac0
2020-07-17 22:56:19 +02:00
pkgrel=1
pkgdesc="Adjust the color temperature of your screen according to your surroundings."
2020-07-17 22:56:19 +02:00
arch=('x86_64')
url="https://gitlab.com/chinstrap/gammastep"
2020-07-17 22:56:19 +02:00
license=('GPL3')
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')
source=("git+https://gitlab.com/chinstrap/gammastep.git")
sha256sums=('SKIP')
2020-07-17 22:56:19 +02:00
pkgver() {
cd gammastep
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
2020-07-17 22:56:19 +02:00
}
prepare() {
cd "$srcdir"/gammastep
2020-07-17 22:56:19 +02:00
./bootstrap
}
build() {
cd "$srcdir"/gammastep
2020-07-17 22:56:19 +02:00
./configure --prefix=/usr
make
}
check() {
cd "$srcdir"/gammastep
make -k check
2020-07-17 22:56:19 +02: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}"
}