summary refs log tree commit diff
path: root/x11-misc/sxlock/sxlock-1.1.ebuild
diff options
context:
space:
mode:
authorAzat Bahawi <azahi@teknik.io>2020-02-29 13:01:34 +0300
committerAzat Bahawi <azahi@teknik.io>2020-02-29 13:01:34 +0300
commitfa61e295882f813a8352fad0878c21bebf63559f (patch)
tree1b0024763b3c9aeea427c22e76e27177ac19dd35 /x11-misc/sxlock/sxlock-1.1.ebuild
parentx11-misc/pywal: Bump EAPI, bump version, live (diff)
x11-misc/sxlock: Add live ebuild
Diffstat (limited to '')
-rw-r--r--x11-misc/sxlock/sxlock-1.1.ebuild17
1 files changed, 14 insertions, 3 deletions
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

Consider giving Nix/NixOS a try! <3