summary refs log tree commit diff
diff options
context:
space:
mode:
authorAzat Bahawi <azahi@teknik.io>2020-08-23 11:38:44 +0300
committerAzat Bahawi <azahi@teknik.io>2020-08-23 11:38:44 +0300
commit385f67fcd5a39c11004627ba48978227bd9f48b2 (patch)
treed9a8e2c1d34c6f43408564fb8eb91c8fd5e2ebe9
parentUpdate TODO.md (diff)
x11-apps/sx: Add package
-rw-r--r--x11-apps/sx/Manifest1
-rw-r--r--x11-apps/sx/metadata.xml11
-rw-r--r--x11-apps/sx/sx-2.1.3.ebuild42
-rw-r--r--x11-apps/sx/sx-9999.ebuild42
4 files changed, 96 insertions, 0 deletions
diff --git a/x11-apps/sx/Manifest b/x11-apps/sx/Manifest
new file mode 100644
index 0000000..d7eb14d
--- /dev/null
+++ b/x11-apps/sx/Manifest
@@ -0,0 +1 @@
+DIST sx-2.1.3.tar.gz 3342 BLAKE2B 92d3ac1308261d4a9325262a44be8a7022ebf73b18058d2fd5493f8f9d0992b8bc2cc2ad77b747cf51b69f50727c6a422bd130f7805919c0d8e0c0ef2de8e8d0 SHA512 d945888cb164d85d7e1ae87f86a79d4ad3130b4656652d7def490b7846b6cb6ae3427e70e5bc311f4fc02bfc4e4e2ca6d618ba1a3a8f4c4cf4c4d212afbb4fb9
diff --git a/x11-apps/sx/metadata.xml b/x11-apps/sx/metadata.xml
new file mode 100644
index 0000000..f1e7a0d
--- /dev/null
+++ b/x11-apps/sx/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>azahi@teknik.io</email>
+		<name>azahi</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">Earnestly/sx</remote-id>
+	</upstream>
+</pkgmetadata>
diff --git a/x11-apps/sx/sx-2.1.3.ebuild b/x11-apps/sx/sx-2.1.3.ebuild
new file mode 100644
index 0000000..02809d4
--- /dev/null
+++ b/x11-apps/sx/sx-2.1.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/Earnestly/sx.git"
+fi
+
+DESCRIPTION="A simpler alternative to xinit"
+HOMEPAGE="https://github.com/Earnestly/sx"
+
+if [[ ${PV} == *9999 ]]; then
+	SRC_URI=""
+	KEYWORDS=""
+else
+	SRC_URI="https://github.com/Earnestly/sx/archive/${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+DEPEND="
+	x11-apps/xauth
+	x11-base/xorg-server[xorg]
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_compile()
+{
+	true
+}
+
+src_install()
+{
+	dobin ${PN}
+	doman ${PN}.1
+}
diff --git a/x11-apps/sx/sx-9999.ebuild b/x11-apps/sx/sx-9999.ebuild
new file mode 100644
index 0000000..02809d4
--- /dev/null
+++ b/x11-apps/sx/sx-9999.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/Earnestly/sx.git"
+fi
+
+DESCRIPTION="A simpler alternative to xinit"
+HOMEPAGE="https://github.com/Earnestly/sx"
+
+if [[ ${PV} == *9999 ]]; then
+	SRC_URI=""
+	KEYWORDS=""
+else
+	SRC_URI="https://github.com/Earnestly/sx/archive/${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+DEPEND="
+	x11-apps/xauth
+	x11-base/xorg-server[xorg]
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_compile()
+{
+	true
+}
+
+src_install()
+{
+	dobin ${PN}
+	doman ${PN}.1
+}

Consider giving Nix/NixOS a try! <3