-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michal Vu <[email protected]>
- Loading branch information
Michal Vu
committed
Aug 2, 2024
1 parent
76f8bd3
commit fd06f17
Showing
5 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
DIST ly-1.0.1.tar.gz 64004 BLAKE2B daf90c17ab467d71ba24f65ff42a36ca008c20a1b0706e158a580b1ee3c11bf0d93dacb3531359797d3c5cf2290daf792ef9c0621bbab8993b530536b2d08376 SHA512 a72ee6cda8849b2a7c249ba3abc5159e1f5ac9c220732513a331d50afef32ed6be04f7452f2995bc5783181b2f627d8a2299aad4504af946d7384d905b9727ca | ||
DIST zig-clap.tar.gz 22722 BLAKE2B 2a157daf2551e78fe441322f7ad071fb8fc44ca66e8400b54ab1f061197334b766460d2db6f78d4d9f74287fe0e45f327efff9b502da3f8846d18290ed3bf763 SHA512 5ea19e67ab0c6b4a2ea439d45ae578c68eff6e62275f7901ef94984fad3b0502cb596c656aa4dc5aae5ebfca75ef3d4f6e854d6c2899984b073d6b2a28750a88 | ||
DIST zigini.tar.gz 5529 BLAKE2B 956c6d66e5a1040effd0ae465941c1740a16b66142414bc83143c3607a79d84103079858a8bd74865ea5340369baf684dcbfef44fddccf84774499e721713f70 SHA512 a90fe54560775bc96e7d97ccdc1bb45d3cd4becae0c28c0905a030e19956dc0c6a97f1207671a7c9759a226b055a62505f3c7440bea4926292cce53eabb5972c | ||
DIST ziglibini.tar.gz 6834 BLAKE2B 479f947b40c4e99340977bb5b5191ccaff5d47515d7dc7f0fdd1277883079cddcb4574929df03d5f0e135a9732b950f2c171809c62a6d73196ef44cb38b1d4d5 SHA512 3b3a604e7e4f26f4277a0aa0e347996bd059a45fc2ae8baad5d7b133698cdf972b889fe80d6032f1ad42a362314290177f014d2866627a48da7dd03e112f3bce |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/build.zig.zon b/build.zig.zon | ||
index 0594da1..d3e6a33 100644 | ||
--- a/build.zig.zon | ||
+++ b/build.zig.zon | ||
@@ -3,12 +3,10 @@ | ||
.version = "1.0.0", | ||
.dependencies = .{ | ||
.clap = .{ | ||
- .url = "https://github.com/Hejsil/zig-clap/archive/8c98e6404b22aafc0184e999d8f068b81cc22fa1.tar.gz", | ||
- .hash = "122014e73fd712190e109950837b97f6143f02d7e2b6986e1db70b6f4aadb5ba6a0d", | ||
+ .path = "./deps/zig-clap", | ||
}, | ||
.zigini = .{ | ||
- .url = "https://github.com/Kawaii-Ash/zigini/archive/ce1f322482099db058f5d9fdd05fbfa255d79723.tar.gz", | ||
- .hash = "1220e7a99793a0430e0a7c0b938cb3c98321035bc297e21cd0e2413cf740b4923b9f", | ||
+ .path = "./deps/zigini", | ||
}, | ||
}, | ||
.paths = .{""}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/deps/zigini/build.zig.zon b/deps/zigini/build.zig.zon | ||
index dac05b3..86a38f0 100644 | ||
--- a/deps/zigini/build.zig.zon | ||
+++ b/deps/zigini/build.zig.zon | ||
@@ -3,8 +3,7 @@ | ||
.version = "0.2.0", | ||
.dependencies = .{ | ||
.ini = .{ | ||
- .url = "https://github.com/ziglibs/ini/archive/19e1210063882ab7db73a8aaa60e733d4aaafe9f.tar.gz", | ||
- .hash = "1220f1b89fc24ced663baf8cb0d32d951497d88bbd5df8f6e26d7e5ea9579d684786", | ||
+ .path = "./ini", | ||
}, | ||
}, | ||
.paths = .{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Copyright 2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit systemd pam | ||
|
||
DESCRIPTION="Ly - a TUI display manager" | ||
HOMEPAGE="https://github.com/fairyglade/ly" | ||
|
||
CLAP="8c98e6404b22aafc0184e999d8f068b81cc22fa1" | ||
ZIGINI="ce1f322482099db058f5d9fdd05fbfa255d79723" | ||
ZIGLIBINI="da0af3a32e3403e3113e103767065cbe9584f505" | ||
|
||
SRC_URI=" | ||
https://github.com/fairyglade/ly/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz | ||
https://github.com/Hejsil/zig-clap/archive/${CLAP}.tar.gz -> zig-clap.tar.gz | ||
https://github.com/Kawaii-Ash/zigini/archive/${ZIGINI}.tar.gz -> zigini.tar.gz | ||
https://github.com/ziglibs/ini/archive/${ZIGLIBINI}.tar.gz -> ziglibini.tar.gz | ||
" | ||
LICENSE="WTFPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64" | ||
|
||
EZIG_MIN="0.12" | ||
DEPEND=" | ||
|| ( dev-lang/zig-bin:${EZIG_MIN} dev-lang/zig:${EZIG_MIN} ) | ||
sys-libs/pam | ||
x11-libs/libxcb | ||
" | ||
|
||
RDEPEND=" | ||
x11-base/xorg-server | ||
x11-apps/xauth | ||
sys-libs/ncurses | ||
" | ||
|
||
RES="${S}/res" | ||
|
||
PATCHES=( | ||
"${FILESDIR}/${PN}-build-zig-zon-${PV}.patch" | ||
"${FILESDIR}/${PN}-zigini-build-zig-zon-${PV}.patch" | ||
) | ||
|
||
src_unpack() { | ||
default | ||
|
||
# create a subdir for deps | ||
mkdir "${S}/deps" || die | ||
|
||
# move all deps to the subdir | ||
mv "zig-clap-${CLAP}" "${S}/deps/zig-clap" || die | ||
mv "zigini-${ZIGINI}" "${S}/deps/zigini" || die | ||
mv "ini-${ZIGLIBINI}" "${S}/deps/zigini/ini" || die | ||
} | ||
|
||
src_compile() { | ||
zig build || die "Zig build failed" | ||
} | ||
|
||
src_install() { | ||
dobin "${S}/zig-out/bin/${PN}" | ||
newinitd "${RES}/${PN}-openrc" ly | ||
systemd_dounit "${RES}/${PN}.service" | ||
insinto /etc/ly | ||
doins "${RES}/config.ini" "${RES}/xsetup.sh" "${RES}/wsetup.sh" | ||
insinto /etc/ly/lang | ||
doins "${RES}"/lang/*.ini | ||
newpamd "${RES}/pam.d/ly" ly | ||
} | ||
|
||
pkg_postinst() { | ||
systemd_reenable "${PN}.service" | ||
|
||
ewarn | ||
ewarn "The init scripts are installed only for systemd/openrc" | ||
ewarn "If you are using something else like runit etc." | ||
ewarn "Please check upstream for get some help" | ||
ewarn "You may need to take a look at /etc/ly/config.ini" | ||
ewarn "If you are using a window manager as DWM" | ||
ewarn "Please make sure there is a .desktop file in /usr/share/xsessions for it" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"> | ||
<email>[email protected]</email> | ||
<name>Michal Vu</name> | ||
</maintainer> | ||
<longdescription> | ||
Ly is a lightweight TUI (Terminal User Interface) display manager for Linux. | ||
It aims to be simple, fast, and easily configurable. Ly supports various | ||
desktop environments and window managers, and provides a minimalistic | ||
yet functional login experience. It's designed to be an alternative to | ||
heavier graphical display managers while still offering essential features. | ||
</longdescription> | ||
<upstream> | ||
<remote-id type="github">fairyglade/ly</remote-id> | ||
</upstream> | ||
</pkgmetadata> |