33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
# Maintainer: Matthias Quintern <matthiasqui@protonmail.com>
|
|
pkgname=msynk
|
|
pkgver=1.2
|
|
pkgrel=2
|
|
pkgdesc="rsync helper that supports encryption (through mkrypt) and presets"
|
|
arch=('any')
|
|
url="https:/github.com/MatthiasQuintern/msynk"
|
|
license=('GPL3')
|
|
depends=('rsync')
|
|
optdepends=('mkrypt: for encryption')
|
|
source=(msynk.sh _msynk.compdef.zsh msynk.1.man template)
|
|
md5sums=(1c9a807605d9f156997f720d07649f80 8398678146d9f8a5669e8b788502b3b8 d089828a93bf8e4ffd9051d8ea756ab8 492028aa2f08528f1d476376884959b2)
|
|
|
|
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/man/man1/"
|
|
cp "${srcdir}/msynk.1.man" "${pkgdir}/usr/share/man/man1/msynk.1"
|
|
|
|
mkdir -p "${pkgdir}/usr/share/msynk"
|
|
cp "${srcdir}/template" "${pkgdir}/usr/share/msynk/template"
|
|
chmod +x "${pkgdir}/usr/share/msynk/template"
|
|
|
|
# if has zsh
|
|
if [[ -f /bin/zsh ]]; then
|
|
mkdir -p "${pkgdir}/usr/share/zsh/site-functions"
|
|
cp "${srcdir}/_msynk.compdef.zsh" "${pkgdir}/usr/share/zsh/site-functions/_msynk"
|
|
chmod +x "${pkgdir}/usr/share/zsh/site-functions/_msynk"
|
|
fi
|
|
}
|