# Contributor: Jacek Pruciak # Contributor: Jakub Jirutka # Maintainer: Jacek Pruciak pkgname=zsh-theme-powerlevel10k pkgver=1.19.0 pkgrel=0 pkgdesc="Theme for Zsh. It emphasizes speed, flexibility and out-of-the-box experience." url="https://github.com/romkatv/powerlevel10k" arch="noarch" license="MIT" depends="gitstatus-zsh-plugin zsh" options="!check" # no upstream tests source="https://github.com/romkatv/powerlevel10k/archive/refs/tags/v$pkgver/zsh-theme-powerlevel10k-$pkgver.tar.gz powerlevel10k.plugin.zsh " builddir="$srcdir/powerlevel10k-$pkgver" prepare() { default_prepare local req_ver act_ver req_ver=$(. gitstatus/build.info; echo "$gitstatus_version") act_ver=$(/usr/libexec/gitstatusd --version) if [ "$(apk version -t "$act_ver" "$req_ver")" = '<' ]; then warning "gitstatus aport is outdated, upgrade it to $req_ver" fi } build() { local f; for f in ./*.zsh-theme internal/*.zsh; do zsh -c "zcompile -R -- $f.zwc $f" done } package() { local destdir="$pkgdir/usr/share/zsh/plugins/powerlevel10k" # powerlevel10k.plugin.zsh is mainly for the plugin loader in Alpine's # default /etc/zsh/zshrc. install -D -m644 -t "$destdir"/ \ ./*.zsh-theme \ ./*_setup \ "$srcdir"/powerlevel10k.plugin.zsh cp -r config internal "$destdir"/ ln -s ../gitstatus "$destdir"/gitstatus } sha512sums=" 87beb13ffdc10c1d06e10e425a7eae9046aceefcff71065039536d6f6f6b51e24e003080f08db3b4bf4e98dd6933238b01f4a2b6ba5adf0b4c42491710245f87 zsh-theme-powerlevel10k-1.19.0.tar.gz d437f97eb9ce413aa92293f678a92bf95cb966a1ac611982c15e3fd4c259d32952b70ce630fbce4d5a2b253f4535ead8585b481a25901fcb73f2a952100ba491 powerlevel10k.plugin.zsh "