mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-19 07:49:00 -04:00
gui-apps/hyprlock: new package, add 0.0.1, 9999
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
parent
cbcd62313c
commit
980e311a7c
1
gui-apps/hyprlock/Manifest
Normal file
1
gui-apps/hyprlock/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST hyprlock-0.0.1.gh.tar.gz 33244 BLAKE2B 3acca1217274d1d6b05febaa6ef9988080f70bb58bdde87d51c906ea62b49f3a7eeb1e64cc43b0c6e6a0688ef2348c563cc788904274dd675248620c6cf1126d SHA512 e3baa476852329dbd1eea87ad1ddfcb0521d6c73797e2fd2e9ab17d4f8cebfae68ccf947cda44aeb8d32ceaf1a03c586fa77dd539f47713b8a64afd2ebbff3fa
|
59
gui-apps/hyprlock/hyprlock-0.0.1.ebuild
Normal file
59
gui-apps/hyprlock/hyprlock-0.0.1.ebuild
Normal file
@ -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
|
||||
}
|
59
gui-apps/hyprlock/hyprlock-9999.ebuild
Normal file
59
gui-apps/hyprlock/hyprlock-9999.ebuild
Normal file
@ -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
|
||||
}
|
18
gui-apps/hyprlock/metadata.xml
Normal file
18
gui-apps/hyprlock/metadata.xml
Normal file
@ -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>julien@jroy.ca</email>
|
||||
<name>Julien Roy</name>
|
||||
</maintainer>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>gonegrier.duarte@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>
|
Loading…
x
Reference in New Issue
Block a user