app-shells/zsh-theme-powerlevel10k:Theme for Zsh that emphasizes speed, flexibility and out-of-the-box experience (#935)

Signed-off-by: Yachen Wang <OriPoin@outlook.com>
This commit is contained in:
Yachen 2021-06-02 15:28:23 +08:00 committed by GitHub
parent 5b59a913c3
commit 4d114708a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST zsh-theme-powerlevel10k-1.14.6.tar.gz 365868 SHA512 e4d12cb81ce0bacf6c7021719e4dae3d0f88fe34db022ac0e7ba48a84ef86749d17ef1fe01a5ae392b6b10e3a6ea043dca244bda10be009c461ffc71380a7fcf

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>OriPoin@outlook.com</email>
<name>Yachen Wang</name>
</maintainer>
</pkgmetadata>

View File

@ -0,0 +1,51 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="${PN##zsh-theme-}"
DESCRIPTION="Theme for Zsh that emphasizes speed, flexibility and out-of-the-box experience"
HOMEPAGE="https://github.com/romkatv/powerlevel10k"
SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~x86"
DEPEND="app-shells/zsh
app-shells/gitstatus"
RDEPEND="${DEPEND}"
BDEPEND=""
S="${WORKDIR}/${MY_PN}-${PV}"
src_prepare() {
sed -i Makefile -e '/gitstatus/d'
default
}
src_compile() {
emake pkg
}
src_install() {
dodoc {README,font}.md
insinto "/usr/share/zsh/site-functions/${MY_PN}"
doins -r config/
doins -r internal/
doins prompt_*_setup
doins powerlevel*.zsh-theme{,.zwc}
dosym ../../../gitstatus \
"/usr/share/zsh/site-functions/${MY_PN}/gitstatus"
}
pkg_postinst() {
elog "To use this theme source /usr/share/zsh/site-functions/powerlevel10k/powerlevel10k.zsh-theme in your ~/.zshrc"
elog "The full choice of style options is available only when using Nerd Fonts.For example: media-fonts/nerd-fonts"
}