# Maintainer: Matthias Quintern pkgname=msynk pkgver=1.0 pkgrel=1 pkgdesc="rsync helper that supports encryption and presets" arch=('any') url="https:/github.com/MatthiasQuintern/msynk" license=('GPL3') depends=('rsync') optdepends=('mkrypt: for encryption') source=(msynk.sh _msynk.compdef.zsh) md5sums=(8a25fcee8c895632f5216933b2058c68 f621c7793781a8e2684eba8c17d6a029) package() { mkdir -p "${pkgdir}/usr/bin" cp "${srcdir}/msynk.sh" "${pkgdir}/usr/bin/msynk" chmod +x "${pkgdir}/usr/bin/msynk" mkdir -p "${pkgdir}/usr/share/local/man/man1/" cp "msynk.1.man" "${pkgdir}/usr/share/local/man/man1/msynk.1" mkdir -p "${pkdir}/usr/share/msynk" cp "template" "${pkdir}/usr/share/msynk/template" chmod +x "${pkdir}/usr/share/msynk/template" # if using zsh if [[ -n $ZSH_VERSION ]]; then mkdir -p "${pkdir}/usr/share/zsh/site-functions" cp "${srcdir}/_msynk.compdef.zsh" "${pkdir}/usr/share/zsh/site-functions/_msynk" chmod +x "${pkdir}/usr/share/zsh/site-functions/_msynk" fi }