# Maintainer: Eric Vidal <eric@obarun.org>

pkgname=obarun-zsh
pkgver=0.5
pkgrel=2
pkgdesc="Obarun zsh dotfiles"
arch=(x86_64)
url='https://obarun.org'
license=('ISC')
depends=('zsh')
optdepends=('fzf: interactive menu support')
source=('zshrc' 'zshenv' 'LICENSE')
backup=('etc/skel/.zshrc' 'etc/skel/.zshenv' 'etc/.zshrc' 'etc/.zshenv')
sha256sums=('209680f43be852f72f953c7b9c37082cb0f85f2ad35dc1e912b7b729cef883e8'
            '579d0505351ee9883708c845176084d21f97e728ba28851127fe4bbfeca9a7af'
            '3aa3f0b36771bb2c6eeb386308fb0bff525b9e82ea189872384477156e455cff')

package() {

    install -D -m644 zshrc ${pkgdir}/etc/skel/.zshrc
    install -D -m644 zshenv ${pkgdir}/etc/skel/.zshenv
    install -D -m644 zshrc ${pkgdir}/etc/.zshrc
    install -D -m644 zshenv ${pkgdir}/etc/.zshenv

    install -Dm 0644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
