msynk/PKGBUILD

33 lines
1.0 KiB
Bash
Raw Normal View History

2022-03-11 21:07:56 +01:00
# Maintainer: Matthias Quintern <matthiasqui@protonmail.com>
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')
2022-03-13 15:01:38 +01:00
source=(msynk.sh _msynk.compdef.zsh)
md5sums=(8a25fcee8c895632f5216933b2058c68 f621c7793781a8e2684eba8c17d6a029)
2022-03-11 21:07:56 +01:00
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/"
2022-03-13 15:01:38 +01:00
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
2022-03-11 21:07:56 +01:00
}