wok view sshrc/receipt @ rev 22433

Add sshrc (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 21 11:47:09 2019 +0100 (2019-12-21)
parents da0a38e4800e
children 4ac5a0dcd3b1
line source
1 # SliTaz package receipt.
3 PACKAGE="sshrc"
4 VERSION="0.6.2"
5 CATEGORY="network"
6 TAGS="ssh"
7 SHORT_DESC="bring your .bashrc, .vimrc, etc. with you when you ssh"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://github.com/Russell91/sshrc"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/Russell91/sshrc/archive/$VERSION.tar.gz"
15 DEPENDS="bash openssl tar"
16 SUGGESTED="mosh"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 genpkg_rules()
20 {
21 mkdir -p $fs/usr/bin $install/usr/share/doc
22 cp $src/README.md $install/usr/share/doc
23 cp -a $src/*shrc $fs/usr/bin
24 sed -i -e 's|command -v xxd|command -v openssl|' \
25 -e 's|sshrc requires xxd|moshrc requires openssl|' \
26 -e "s/| xxd -p -r/| tr -s ' ' \$'\\\\n' | openssl enc -base64 -d/" \
27 -e 's|xxd -p|openssl enc -base64|' \
28 -e "s|\\\$'\\\$(|\$'\"\$(|" -e "s|)'|)\"'|" $fs/usr/bin/moshrc
29 }