Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gui-apps/waylock: Bump version to 1.3.0. #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 gui-apps/waylock/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DIST waylock-1.2.0.tar.gz 20521 BLAKE2B 2cb022e6287f975e1286f697ce21f394a76a7b729b6c0198ac3149c945f8daaf58bbd9167c520b4bda4d5fdf132b0aad3e4e6f3abe935a9ea5677a2d7a224f05 SHA512 70e15803b5901ebfa1dd4dca0503e4ad4b8eb316829c65cbe5d5b2dfe3bf9b84ca61778760376a8829d591feea273a65ed1ca5a3aef850814e35835d17c37b95
DIST waylock-1.3.0.tar.gz 21281 BLAKE2B 18c9d2e22ead5d03abf1f53b7c148f58ddcbad2857bdc95f4c1f2a5e6946f87fc6a580b728fa9fb17adb76a4957eeb0e428eacd5ab522ded925e7efb2d416671 SHA512 6f018b06a448c533cd64b8a62b1d2bc3ba92f52db1b0c7bf01b73d8e6d865222b2c25c5a7e5206d22dc1f607e47ce65d3dcbaa912efbf92d6c90d48be3a6c26b
DIST zig-wayland-0.2.0.tar.gz 56543 BLAKE2B aaf82efe78d25c59a87de050147857fcf9a19764141cb40d92b0dd48b96ea0ec52d00a1ab0df1afe4c45cda6d64dda97f296f0aa29d8b9ea3da49e1d5cd69e50 SHA512 dfb140c06d9e3c566034f9102426e7bd47dcde87a2ae16d43ce3ea72cf44bea872bab1d9a23a24ae9d57d2d4ae6c56060a6b10f869de3990046426b0462db85e
DIST zig-xkbcommon-0.2.0.tar.gz 22700 BLAKE2B 85045d002b4ec1ac8dadda67d3ce6f588e53938ac0a67c06d6cebc85a944d7a23fd1cc295410ce1a91cce9ffb587834f7eca2400e1468fec0193583ac71d6f86 SHA512 a99b6a2fefe34507fd687b58a9618a27ca617966798b410a72c9e53462c3f9c6dd0476a22bb9686cbf49994ca502743b4d25fdc55125359d4fe2860094bf0e82
81 changes: 81 additions & 0 deletions gui-apps/waylock/waylock-1.3.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Copyright 2023 Niklaus 'vimja' Hofer
# Distributed under the terms of the ISC License

EAPI=8

inherit edo

DESCRIPTION="Small screenlocker for Wayland compositors"
HOMEPAGE="https://codeberg.org/ifreund/waylock"

SRC_URI="
https://codeberg.org/ifreund/waylock/releases/download/v${PV}/${P}.tar.gz
https://codeberg.org/ifreund/zig-wayland/archive/v0.2.0.tar.gz -> zig-wayland-0.2.0.tar.gz
https://codeberg.org/ifreund/zig-xkbcommon/archive/v0.2.0.tar.gz -> zig-xkbcommon-0.2.0.tar.gz
"
KEYWORDS="~amd64"

LICENSE="ISC"
SLOT="0"
IUSE="+man pie test"
RESTRICT="!test? ( test )"

RDEPEND="
dev-libs/wayland
sys-libs/pam
x11-libs/libxkbcommon:=
"
DEPEND="${RDEPEND}"
EZIG_VISION="0.13*"
BDEPEND="
|| ( =dev-lang/zig-${EZIG_VISION} =dev-lang/zig-bin-${EZIG_VISION} )
dev-libs/wayland-protocols
virtual/pkgconfig
man? ( app-text/scdoc )
"

QA_FLAGS_IGNORED="usr/bin/waylock"

# : refer to sys-fs/ncdu :
zig-set_EZIG() {
[[ -n ${EZIG} ]] && return

grep_version=$(echo ${EZIG_VISION} | sed -E 's/\./\\./g; s/\*/.*/g')
EZIG=$(compgen -c | grep 'zig.*-'$grep_version | head -n 1) || die
}

ezig() {
zig-set_EZIG
edo "${EZIG}" "${@}"
}

src_prepare() {
edo mkdir ${WORKDIR}/deps/

ezig fetch --global-cache-dir ${WORKDIR}/deps/ ${DISTDIR}/zig-wayland-0.2.0.tar.gz
ezig fetch --global-cache-dir ${WORKDIR}/deps/ ${DISTDIR}/zig-xkbcommon-0.2.0.tar.gz
default
}

src_compile() {
local zigoptions=(
--verbose
--system ${WORKDIR}/deps/p/
-Doptimize=ReleaseSafe
-Dman-pages=$(usex man true false)
-Dpie=$(usex pie true false)
${ZIG_FLAGS[@]}
)

DESTDIR="${T}" ezig build "${zigoptions[@]}" --prefix /usr || die
}

src_test() {
ezig build test || die
}

src_install() {
cp -r "${T}"/{etc,usr} "${ED}"/ || die

dodoc README.md || die
}