wok view sshrc/receipt @ rev 25045

Update some wget_url or web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 04 08:33:59 2022 +0000 (2022-06-04)
parents 34e801e0eb52
children 097600d80931
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/cdown/sshrc"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/cdown/sshrc/archive/refs/tags/VERSION.tar.gz"
15 DEPENDS="bash openssl"
16 SUGGESTED="mosh"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/cdown/sshrc/tags 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/bin $install/usr/share/doc
29 cp $src/README.md $install/usr/share/doc
30 cp -a $src/*shrc $fs/usr/bin
32 # dropbear compatibility
33 sed -i 's/-b | -c/& | -B | -K | -J/' $fs/usr/bin/sshrc
35 # remove xxd dependancy
36 sed -i -e 's|command -v xxd|command -v openssl|' \
37 -e 's|sshrc requires xxd|moshrc requires openssl|' \
38 -e "s/| xxd -p -r/| tr -s ' ' \$'\\\\n' | openssl enc -base64 -d/" \
39 -e 's|xxd -p|openssl enc -base64|' \
40 -e "s|\\\$'\\\$(|\$'\"\$(|" -e "s|)'|)\"'|" $fs/usr/bin/moshrc
41 }