x11-misc/ly:fix #4066
This commit is contained in:
1 parent
d54f710d6e
commit
57ddfe3b29
1 file changed
+64
@@ -0,0 +1,64 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit systemd
|
||||
|
||||
# Latest hash of each submodule's master branch
|
||||
ARGOAT="e1844c4c94b70bb351ec2bd2ac6bb320ee793d8f"
|
||||
CONFIGATOR="8cec1786196ae6f6a8b35e66181277457f2a2bb2"
|
||||
DRAGONFAIL="15bd3299bf3e49bd6734bff385cb0392cd2fa502"
|
||||
TERMBOX="d961a8122210010e7c2c8f201e61170c13d319b4"
|
||||
# This is a submodule for a submodule(argoat)
|
||||
TESTOASTERROR="ee7c9d031d4632a6f381a6c174a38539bac04068"
|
||||
|
||||
DESCRIPTION="Ly - a TUI display manager"
|
||||
HOMEPAGE="https://github.com/nullgemm/ly"
|
||||
SRC_URI="https://github.com/nullgemm/ly/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/nullgemm/argoat/archive/${ARGOAT}.tar.gz -> argoat.tar.gz
|
||||
https://github.com/nullgemm/configator/archive/${CONFIGATOR}.tar.gz -> configator.tar.gz
|
||||
https://github.com/nullgemm/dragonfail/archive/${DRAGONFAIL}.tar.gz -> dragonfail.tar.gz
|
||||
https://github.com/nullgemm/termbox_next/archive/${TERMBOX}.tar.gz -> termbox_next.tar.gz
|
||||
https://github.com/nullgemm/testoasterror/archive/${TESTOASTERROR}.tar.gz -> testoasterror.tar.gz
|
||||
"
|
||||
SUB="${S}/sub"
|
||||
RES="${S}/res"
|
||||
|
||||
LICENSE="WTFPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="sys-libs/pam
|
||||
x11-libs/libxcb
|
||||
x11-base/xorg-server
|
||||
x11-apps/xauth"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
mv "argoat-${ARGOAT}/"* "${SUB}/argoat" || die
|
||||
mv "testoasterror-${TESTOASTERROR}/"* "${SUB}/argoat/sub/testoasterror" || die
|
||||
mv "configator-${CONFIGATOR}/"* "${SUB}/configator" || die
|
||||
mv "dragonfail-${DRAGONFAIL}/"* "${SUB}/dragonfail" || die
|
||||
mv "termbox_next-${TERMBOX}/"* "${SUB}/termbox_next" || die
|
||||
}
|
||||
|
||||
src_install(){
|
||||
default
|
||||
|
||||
newinitd "${RES}/${PN}-openrc" ly
|
||||
systemd_dounit "${RES}/${PN}.service"
|
||||
}
|
||||
|
||||
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`"
|
||||
}
|
||||
Reference in new issue
Block a user