blob: 921e57dea9397984fb5212f0bf9e6d797ffa2dc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Florian Dejonckheere <florian at floriandejonckheere dot be>
# Contributor: jyantis <yantis@yantis.net>
# Contributor: Christian Rebischke <Chris.Rebischke[at]archlinux[dot]org>
_pkgname=powerlevel9k
pkgname=zsh-theme-${_pkgname}-git
pkgver=v0.6.2.r1.gfa21d8f
pkgrel=1
pkgdesc='Powerlevel9k theme for zsh'
arch=('any')
url='https://github.com/bhilburn/powerlevel9k'
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/bhilburn/${_pkgname}.git")
sha256sums=('SKIP')
makedepends=('git')
provides=("zsh-theme-${_pkgname}")
conflicts=("zsh-theme-${_pkgname}")
install="zsh-theme-${_pkgname}.install"
pkgver()
{
cd "${srcdir}/${_pkgname}"
git describe --long | sed -r '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 powerlevel9k.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
}
|