Package Details: hyprsunset-git 0.0.1.r9.adaae9d-1

Git Clone URL: https://aur.archlinux.org/hyprsunset-git.git (read-only, click to copy)
Package Base: hyprsunset-git
Description: An application to enable a blue-light filter on Hyprland
Upstream URL: https://github.com/hyprwm/hyprsunset
Licenses: BSD-3-Clause
Conflicts: hyprsunset
Provides: hyprsunset
Submitter: alba4k
Maintainer: alba4k (Vaxry)
Last Packager: alba4k
Votes: 7
Popularity: 2.16
First Submitted: 2024-10-08 20:37 (UTC)
Last Updated: 2024-12-17 21:26 (UTC)

Required by (2)

Sources (1)

Latest Comments

alba4k commented on 2024-11-12 17:14 (UTC)

All git hypr* packages rely on other git packages. this was made that way to prevent people from having issues due to incompatible git and non git packages being installed at the same time

I have considered changing this in the future, and still am considering it, but don't really know if I will. Both approaches have pros and cons (one allows mixong git and non git packages, the other one doesn't, or at least to a smaller extent)

Rubos commented on 2024-11-12 13:58 (UTC) (edited on 2024-11-12 13:59 (UTC) by Rubos)

Since hyprland 0.45 has been released, this package should no longer rely on the -git versions of other packages, but just requires hyprland >= 0.45.0 and so on. This will make it usable with the non-Aur releases

alba4k commented on 2024-10-10 15:58 (UTC) (edited on 2024-10-10 16:04 (UTC) by alba4k)

I'm not really sure if this is on me or not. Shouldn't hyprland-git itself add a provides=(hyprland-protocols-git), as it is indeed providing them apparently?

I'm replacing it with hyprland-git for now

khing0_0 commented on 2024-10-10 02:54 (UTC)

This is not a fix but I manage to build it using this. basically removing hyprland-protocols and use the hyprland-git version


# Maintainer: alba4k <blaskoazzolaaaron@gmail.com>

_pkgname="hyprsunset"
pkgname="${_pkgname}-git"
pkgver=0.0.1.r8.f535c18
pkgrel=1
pkgdesc="An application to enable a blue-light filter on Hyprland"
arch=(any)
url="https://github.com/hyprwm/hyprsunset"
license=('BSD-3-Clause')
depends=('wayland' 'hyprutils-git>=0.2.3' 'wayland-protocols')
makedepends=('git' 'cmake' 'gcc' 'gdb' 'hyprland-git>=0.44.0' 'hyprwayland-scanner-git>=0.4.0')
source=("${_pkgname}::git+https://github.com/hyprwm/hyprsunset.git")
provides=("hyprsunset")
conflicts=("hyprsunset")
sha256sums=('SKIP')

pkgver() {
    cd ${_pkgname}
    #git describe --long --tags --abbrev=8 --exclude='*[a-zA-Z][a-zA-Z]*' \
    #  | sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'

    printf "0.0.1.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "${srcdir}/${_pkgname}"
    cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX=/usr -S . -B ./build
    cmake --build ./build --config Release --target hyprsunset
}

package() {
    cd "${srcdir}/${_pkgname}"
    DESTDIR="${pkgdir}" cmake --install build

    install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

khing0_0 commented on 2024-10-10 02:47 (UTC)

Are you sure with the makde deps?

error: failed to commit transaction (conflicting files)
hyprland-protocols-git: /usr/share/hyprland-protocols/protocols/hyprland-ctm-control-v1.xml exists in filesystem (owned by hyprland-git)
hyprland-protocols-git: /usr/share/hyprland-protocols/protocols/hyprland-focus-grab-v1.xml exists in filesystem (owned by hyprland-git)
hyprland-protocols-git: /usr/share/hyprland-protocols/protocols/hyprland-global-shortcuts-v1.xml exists in filesystem (owned by hyprland-git)
hyprland-protocols-git: /usr/share/hyprland-protocols/protocols/hyprland-toplevel-export-v1.xml exists in filesystem (owned by hyprland-git)