summary refs log tree commit diff
path: root/x11-misc
diff options
context:
space:
mode:
authorAzat Bahawi <azahi@teknik.io>2020-10-24 20:42:12 +0300
committerAzat Bahawi <azahi@teknik.io>2020-10-24 20:42:12 +0300
commit9e28266d859e2e4230470c527dfc8f28242da373 (patch)
tree283ea570376361e258a1381bae68d5ed9c4cf2f4 /x11-misc
parentUpdate .editorconfig (diff)
x11-misc/sflock: Update build process and metadata
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/sflock/metadata.xml3
-rw-r--r--x11-misc/sflock/sflock-9999-r1.ebuild (renamed from x11-misc/sflock/sflock-9999.ebuild)18
2 files changed, 15 insertions, 6 deletions
diff --git a/x11-misc/sflock/metadata.xml b/x11-misc/sflock/metadata.xml
index 7869e07..8f5922b 100644
--- a/x11-misc/sflock/metadata.xml
+++ b/x11-misc/sflock/metadata.xml
@@ -5,4 +5,7 @@
 		<email>azahi@teknik.io</email>
 		<name>azahi</name>
 	</maintainer>
+	<upstream>
+		<remote-id type="github">benruijl/sflock</remote-id>
+	</upstream>
 </pkgmetadata>
diff --git a/x11-misc/sflock/sflock-9999.ebuild b/x11-misc/sflock/sflock-9999-r1.ebuild
index b09b8ba..94af0e3 100644
--- a/x11-misc/sflock/sflock-9999.ebuild
+++ b/x11-misc/sflock/sflock-9999-r1.ebuild
@@ -8,9 +8,9 @@ if [[ ${PV} == *9999 ]]; then
 	EGIT_REPO_URI="https://github.com/benruijl/sflock.git"
 fi
 
-inherit eutils ${SCM}
+inherit toolchain-funcs ${SCM}
 
-DESCRIPTION="focus the closest window in a given direction"
+DESCRIPTION="Simple X display locker, with basic user feedback"
 HOMEPAGE="https://github.com/benruijl/sflock"
 
 if [[ ${PV} == *9999 ]]; then
@@ -25,16 +25,22 @@ LICENSE="MIT"
 SLOT="0"
 IUSE=""
 
-DEPEND="x11-libs/libX11"
+DEPEND="
+	x11-libs/libX11
+	x11-libs/libXext
+"
 RDEPEND="${DEPEND}"
 BDEPEND=""
 
 src_prepare() {
-	sed -e 's/-Os //' -i config.mk || die
-	sed -e 's/-s //' -i config.mk || die
+	sed -e "s/ -Os / ${CFLAGS} /" \
+		-e "s/ -s / ${LDFLAGS} /" \
+		-e "s/ cc/ $(tc-getCC)/" \
+		-i config.mk || die
+
 	default
 }
 
 src_install() {
-	emake PREFIX="/usr" DESTDIR="${D}" install
+	emake install DESTDIR="${D}" PREFIX="/usr"
 }

Consider giving Nix/NixOS a try! <3