# Maintainer: Ron Asimi _pkgname=powerlevel10k pkgname=zsh-theme-${_pkgname}-git pkgver=0.6.6.r255.g85e9f49 pkgrel=1 pkgdesc="Powerlevel10k is a theme for ZSH. It's a backward-compatible fork of Powerlevel9k with lower latency and better prompt responsiveness" arch=('any') url='https://github.com/romkatv/powerlevel10k' license=('MIT') depends=('zsh') optdepends=( 'powerline-fonts: patched fonts for powerline' 'oh-my-zsh-git: oh-my-zsh integration' 'prezto-git: Prezto integration' 'antigen-git: Antigen integration' 'zpm: ZPM integration' 'zsh-zim-git: Zim integration' 'awesome-terminal-fonts: icon package' 'acpi: battery monitoring' 'git: status of repository' 'mercurial: status of repository' 'systemd: virtualization detection' 'openssh: ssh detection') source=("${_pkgname}::git+https://github.com/romkatv/${_pkgname}.git") sha256sums=('SKIP') makedepends=('git') provides=("zsh-theme-${_pkgname}") conflicts=( "zsh-theme-${_pkgname}" "zsh-theme-powerlevel9k-git" ) install="zsh-theme-${_pkgname}.install" pkgver() { cd "$pkgname" ( set -o pipefail git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } package() { cd "${srcdir}/${_pkgname}" # Install license install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" # Install Documentation install -D -m644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" # Install the theme install -D -m644 powerlevel10k.zsh-theme "${pkgdir}/usr/share/zsh-theme-${_pkgname}/${_pkgname}.zsh-theme" # Install the utilities for FILE in functions/*.zsh; do install -D -m644 "${FILE}" "${pkgdir}/usr/share/zsh-theme-${_pkgname}/functions/$(basename ${FILE})" done install -D -m755 prompt_powerlevel10k_setup "${pkgdir}/usr/share/zsh-theme-${_pkgname}/prompt_powerlevel10k_setup" install -D -m644 prompt.png "${pkgdir}/usr/share/zsh-theme-${_pkgname}/prompt.png" install -D -m644 prompt.png "${pkgdir}/usr/share/zsh-theme-${_pkgname}/demo.png" install -d "${pkgdir}/usr/share/zsh-theme-${_pkgname}/gitstatus/bin" cp -R gitstatus "$pkgdir"/usr/share/zsh-theme-${_pkgname}/ }