2022-03-11 21:07:56 +01:00
|
|
|
# Maintainer: Matthias Quintern <matthiasqui@protonmail.com>
|
|
|
|
pkgname=msynk
|
2022-04-08 01:56:55 +02:00
|
|
|
pkgver=1.1
|
2022-03-11 21:07:56 +01:00
|
|
|
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-04-04 03:27:05 +02:00
|
|
|
source=(msynk.sh _msynk.compdef.zsh msynk.1.man template)
|
2022-04-08 02:00:20 +02:00
|
|
|
md5sums=(d22b062903a9fcd1bd9508cbd06cbc6c 8398678146d9f8a5669e8b788502b3b8 d089828a93bf8e4ffd9051d8ea756ab8 492028aa2f08528f1d476376884959b2)
|
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"
|
|
|
|
|
2022-04-04 03:27:05 +02:00
|
|
|
mkdir -p "${pkgdir}/usr/share/man/man1/"
|
|
|
|
cp "${srcdir}/msynk.1.man" "${pkgdir}/usr/share/man/man1/msynk.1"
|
2022-03-13 15:01:38 +01:00
|
|
|
|
2022-04-04 03:27:05 +02:00
|
|
|
mkdir -p "${pkgdir}/usr/share/msynk"
|
|
|
|
cp "${srcdir}/template" "${pkgdir}/usr/share/msynk/template"
|
|
|
|
chmod +x "${pkgdir}/usr/share/msynk/template"
|
2022-03-13 15:01:38 +01:00
|
|
|
|
2022-04-08 00:35:33 +02:00
|
|
|
# if has zsh
|
|
|
|
if [[ -f /bin/zsh ]]; then
|
2022-04-04 03:27:05 +02:00
|
|
|
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"
|
2022-03-13 15:01:38 +01:00
|
|
|
fi
|
2022-03-11 21:07:56 +01:00
|
|
|
}
|