Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions srcpkgs/gammastep-indicator
40 changes: 40 additions & 0 deletions srcpkgs/gammastep/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Template file for 'gammastep'
pkgname=gammastep
version=2.0.2
revision=1
_ref="v${version}"
wrksrc="${pkgname}-${_ref}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to use v$version directly, I think

build_style=gnu-configure
configure_args="
--enable-gui --enable-drm --enable-vidmode --enable-randr --enable-wayland
--enable-apparmor --with-systemdunitdir=no $(vopt_enable geoclue2)"
hostmakedepends="
tar automake libtool gettext-devel intltool pkg-config python3-devel
wayland-devel"
makedepends="
wayland-devel libXxf86vm-devel libdrm-devel $(vopt_if geoclue2 'glib-devel')"
Comment on lines +8 to +15
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line break isn't consistent with other template :)

short_desc="Adjusts the color temperature of your screen to your surroundings"
maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="GPL-3.0-or-later"
homepage="https://gitlab.com/chinstrap/gammastep"
changelog="${homepage}/raw/master/NEWS.md"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expand this variable, please!

distfiles="${homepage}/-/archive/${_ref}/${pkgname}-${_ref}.tar.gz"
checksum=a2b4c12064f85b16f6365ea0ddf1580ed64f66e389803484a8494d81eafa3949
build_options="geoclue2"
build_options_default="geoclue2"

pre_configure() {
./bootstrap
}

gammastep-indicator_package() {
depends="${sourcepkg}-${version}_${revision} gtk+3 python3-gobject
python3-xdg desktop-file-utils"
short_desc+=" - Status Indicator"
pkg_install() {
vmove usr/bin/gammastep-indicator
vmove usr/lib
vmove usr/share/appdata
vmove usr/share/applications/gammastep-indicator.desktop
}
}