From fa61e295882f813a8352fad0878c21bebf63559f Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sat, 29 Feb 2020 13:01:34 +0300 Subject: x11-misc/sxlock: Add live ebuild --- x11-misc/sxlock/sxlock-1.1.ebuild | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'x11-misc/sxlock/sxlock-1.1.ebuild') diff --git a/x11-misc/sxlock/sxlock-1.1.ebuild b/x11-misc/sxlock/sxlock-1.1.ebuild index e27e3f9..f5856a8 100644 --- a/x11-misc/sxlock/sxlock-1.1.ebuild +++ b/x11-misc/sxlock/sxlock-1.1.ebuild @@ -3,15 +3,26 @@ EAPI=7 -inherit eutils +if [[ ${PV} == *9999 ]]; then + SCM="git-r3" + EGIT_REPO_URI="https://github.com/lahwaacz/sxlock.git" +fi + +inherit eutils ${SCM} DESCRIPTION="simple X screen locker" HOMEPAGE="https://github.com/lahwaacz/sxlock" -SRC_URI="https://github.com/lahwaacz/sxlock/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +if [[ ${PV} == *9999 ]]; then + SRC_URI="" + KEYWORDS="" +else + SRC_URI="https://github.com/lahwaacz/sxlock/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="sys-libs/pam -- cgit 1.4.1