aboutsummaryrefslogtreecommitdiff
path: root/repo/zsh-ssr-theme/PKGBUILD
blob: feb3f913700ba2aa99e8e1eb85aec9c05f233131 (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
# Maintainer: KunoiSayami <[email protected]>

pkgname=zsh-ssr-theme
pkgver=0.0.1
pkgrel=4
pkgdesc="This package provides ssr's zsh theme"
arch=('any')
url=https://github.com/KunoiSayami/dotfiles/
source=(
    zshrc.zsh::https://raw.githubusercontent.com/KunoiSayami/dotfiles/f91e1967494703078a35bed834bc0a7f80d00664/.zshrc
    https://gist.githubusercontent.com/KunoiSayami/6e4177ef13a4f8df0cbf3731b68e013c/raw/8ff98306c08ef9133f5125b5f9a8b67698a66a04/p10k.zsh)
sha512sums=(
    'cd92f1db1947f95c059baf2814c68e682eb2c113d6c2383bd9c2a40af3ee944e4bc658a7a18bcdc0ca17d9b6ad99455a909b59dca85565b138767175b52b06e9'
    'bc3624198d6ac743588edfd17df553a87badb13c78014a47eb67c14a4e4010d32dc6981f5fbff33e60cc1efe13e5cbeca8cd4d8852adcf47090a5d14857ed45e')
makedepends=()
depends=('zsh' 'zsh-completions' 'zsh-autosuggestions' 'zsh-theme-powerlevel10k')
optdepends=(
  'zsh-syntax-highlighting: Fish shell like syntax highlighting for Zsh'
)
provides=('zsh-ssr-theme')
install=$pkgname.install

package() {
    sed -i 's|~/.config/zsh/p10k|/etc/zsh/ssr/p10k|g' zshrc.zsh

    install -dm755 "$pkgdir"/etc/zsh/ssr/

    install -m644 zshrc.zsh "$pkgdir"/etc/zsh/ssr/
    install -m644 p10k.zsh "$pkgdir"/etc/zsh/ssr/
}