commit: 980e311a7c483965cca193e16b84751d8e8bba68 Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com> AuthorDate: Tue Feb 20 21:35:02 2024 +0000 Commit: Julien Roy <julien <AT> jroy <DOT> ca> CommitDate: Tue Feb 20 21:55:19 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=980e311a
gui-apps/hyprlock: new package, add 0.0.1, 9999 Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com> gui-apps/hyprlock/Manifest | 1 + gui-apps/hyprlock/hyprlock-0.0.1.ebuild | 59 +++++++++++++++++++++++++++++++++ gui-apps/hyprlock/hyprlock-9999.ebuild | 59 +++++++++++++++++++++++++++++++++ gui-apps/hyprlock/metadata.xml | 18 ++++++++++ 4 files changed, 137 insertions(+) diff --git a/gui-apps/hyprlock/Manifest b/gui-apps/hyprlock/Manifest new file mode 100644 index 0000000000..62516dd497 --- /dev/null +++ b/gui-apps/hyprlock/Manifest @@ -0,0 +1 @@ +DIST hyprlock-0.0.1.gh.tar.gz 33244 BLAKE2B 3acca1217274d1d6b05febaa6ef9988080f70bb58bdde87d51c906ea62b49f3a7eeb1e64cc43b0c6e6a0688ef2348c563cc788904274dd675248620c6cf1126d SHA512 e3baa476852329dbd1eea87ad1ddfcb0521d6c73797e2fd2e9ab17d4f8cebfae68ccf947cda44aeb8d32ceaf1a03c586fa77dd539f47713b8a64afd2ebbff3fa diff --git a/gui-apps/hyprlock/hyprlock-0.0.1.ebuild b/gui-apps/hyprlock/hyprlock-0.0.1.ebuild new file mode 100644 index 0000000000..f631571011 --- /dev/null +++ b/gui-apps/hyprlock/hyprlock-0.0.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake toolchain-funcs + +COMMIT="7b15d34f0af9b1c8ef49279827eee47e4dca9afa" +DESCRIPTION="Hyprland's GPU-accelerated screen locking utility" +HOMEPAGE="https://github.com/hyprwm/hyprlock" + +if [[ "${PV}" = *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/hyprwm/${PN^}.git" +else + #When releases start to happen + #SRC_URI="https://github.com/hyprwm/${PN^}/releases/download/v${PV}/source-v${PV}.tar.gz -> ${P}.gh.tar.gz" + #S="${WORKDIR}/${PN}-source" + + SRC_URI="https://github.com/hyprwm/${PN^}/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + + KEYWORDS="~amd64 ~riscv" +fi + +LICENSE="BSD" +SLOT="0" + +RDEPEND=" + dev-libs/wayland + gui-libs/egl-wayland + media-libs/mesa[egl(+),gles2] + sys-libs/pam + >=gui-wm/hyprland-0.35.0 +" +DEPEND=" + ${RDEPEND} + dev-libs/wayland-protocols +" + +BDEPEND=" + >=dev-libs/hyprlang-0.4.0 + x11-libs/libxkbcommon + x11-libs/cairo + dev-build/cmake + virtual/pkgconfig +" + +src_configure() { + local mycmakeargs=( + -DCMAKE_BUILD_TYPE:STRING=Release + ) + + meson_src_configure +} + +src_install() { + cmake_src_install +} diff --git a/gui-apps/hyprlock/hyprlock-9999.ebuild b/gui-apps/hyprlock/hyprlock-9999.ebuild new file mode 100644 index 0000000000..f631571011 --- /dev/null +++ b/gui-apps/hyprlock/hyprlock-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake toolchain-funcs + +COMMIT="7b15d34f0af9b1c8ef49279827eee47e4dca9afa" +DESCRIPTION="Hyprland's GPU-accelerated screen locking utility" +HOMEPAGE="https://github.com/hyprwm/hyprlock" + +if [[ "${PV}" = *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/hyprwm/${PN^}.git" +else + #When releases start to happen + #SRC_URI="https://github.com/hyprwm/${PN^}/releases/download/v${PV}/source-v${PV}.tar.gz -> ${P}.gh.tar.gz" + #S="${WORKDIR}/${PN}-source" + + SRC_URI="https://github.com/hyprwm/${PN^}/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + + KEYWORDS="~amd64 ~riscv" +fi + +LICENSE="BSD" +SLOT="0" + +RDEPEND=" + dev-libs/wayland + gui-libs/egl-wayland + media-libs/mesa[egl(+),gles2] + sys-libs/pam + >=gui-wm/hyprland-0.35.0 +" +DEPEND=" + ${RDEPEND} + dev-libs/wayland-protocols +" + +BDEPEND=" + >=dev-libs/hyprlang-0.4.0 + x11-libs/libxkbcommon + x11-libs/cairo + dev-build/cmake + virtual/pkgconfig +" + +src_configure() { + local mycmakeargs=( + -DCMAKE_BUILD_TYPE:STRING=Release + ) + + meson_src_configure +} + +src_install() { + cmake_src_install +} diff --git a/gui-apps/hyprlock/metadata.xml b/gui-apps/hyprlock/metadata.xml new file mode 100644 index 0000000000..a095a38dcc --- /dev/null +++ b/gui-apps/hyprlock/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>jul...@jroy.ca</email> + <name>Julien Roy</name> + </maintainer> + <maintainer type="person" proxied="yes"> + <email>gonegrier.dua...@gmail.com</email> + <name>Gonçalo Negrier Duarte</name> + </maintainer> + <upstream> + <changelog>https://github.com/hyprwm/hyrlock/releases</changelog> + <doc>https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/</doc> + <bugs-to>https://github.com/hyprwm/hyrlock/issues</bugs-to> + <remote-id type="github">hyprwm/hyprlock</remote-id> + </upstream> +</pkgmetadata>