diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2022-10-07 12:04:38 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2022-10-07 12:07:57 -0700 |
commit | a70df51379bf1a8023dfdb1d24ed6b02974c6b4c (patch) | |
tree | fb909750c6a769acdb2c2754e6cc76280020b0cf /x11-terms | |
parent | x11-misc/slock: add 1.5 (diff) | |
download | gentoo-a70df51379bf1a8023dfdb1d24ed6b02974c6b4c.tar.gz gentoo-a70df51379bf1a8023dfdb1d24ed6b02974c6b4c.tar.bz2 gentoo-a70df51379bf1a8023dfdb1d24ed6b02974c6b4c.zip |
x11-terms/st-terminfo: add 0.9
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'x11-terms')
-rw-r--r-- | x11-terms/st-terminfo/Manifest | 1 | ||||
-rw-r--r-- | x11-terms/st-terminfo/st-terminfo-0.9.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/x11-terms/st-terminfo/Manifest b/x11-terms/st-terminfo/Manifest index 589989ed4491..b95bc3ef1057 100644 --- a/x11-terms/st-terminfo/Manifest +++ b/x11-terms/st-terminfo/Manifest @@ -1 +1,2 @@ DIST st-0.8.5.tar.gz 47829 BLAKE2B 9c036b39605dcc69c03fd5a67e911545eb41e3e748efbcf4761770b2a9bf9f158fc1da1fc140b84fb9939fcb35ce126de444cd567806c350e8e2905907bdf645 SHA512 45cc51f9fc343bd80a48f23f5b00e41e0cc01a538474e0578dd02f02ce92cb560e0e7464ec47fd7de4d39483b23fda212c3e7c64233e8a3f4ab6862144d76323 +DIST st-0.9.tar.gz 48171 BLAKE2B f6713b565b785549a571b3775346351c6db79dfbb1a93e29aadd722f30e957e9f77d1644b150cd11f0993dec5accad9d825e6d6b380b4c84c5f526b6589d1b15 SHA512 8d996a68d55c63d84da9962911b076ef437842e8cd83d74672d95531dfbaea91e049430886459a99e859ec760bb3754e94bbe1f646410998725e5a8997fb70ea diff --git a/x11-terms/st-terminfo/st-terminfo-0.9.ebuild b/x11-terms/st-terminfo/st-terminfo-0.9.ebuild new file mode 100644 index 000000000000..e7705495c78e --- /dev/null +++ b/x11-terms/st-terminfo/st-terminfo-0.9.ebuild @@ -0,0 +1,51 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Terminfo for x11-terms/st" +HOMEPAGE="https://st.suckless.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.suckless.org/st" +else + SRC_URI="https://dl.suckless.org/st/st-${PV}.tar.gz" + S="${WORKDIR}/st-${PV}" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~ppc64 ~riscv ~x86" +fi + +LICENSE="MIT-with-advertising" +SLOT="0" + +BDEPEND=">=sys-libs/ncurses-6.0" + +RESTRICT="test" + +src_prepare() { + mkdir -v terminfo || die "Failed to create terminfo directory" + default +} + +src_configure() { + : +} + +src_compile() { + tic -sxo terminfo st.info || die "Failed to translate terminfo file" +} + +src_install() { + insinto "/usr/share/st" + doins -r terminfo + + newenvd - "51${PN}" <<-_EOF_ + TERMINFO_DIRS="/usr/share/st/terminfo" + COLON_SEPARATED="TERMINFO_DIRS" + _EOF_ +} + +pkg_postinst() { + ewarn "Please run env-update and then source /etc/profile in any open shells" + ewarn "to update terminfo settings. Relogin to update it for any new shells." +} |