wok annotate SkypeFreak/receipt @ rev 24476

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 18 09:29:30 2022 +0000 (2022-02-18)
parents 25f8eb393142
children e717a4953b0e
rev   line source
al@16452 1 # SliTaz package receipt.
al@16452 2
al@16452 3 PACKAGE="SkypeFreak"
pascal@22825 4 GITHASH="9347a651e724b41a8da3bc77568577f3c8ed3036"
al@16452 5 VERSION=${GITHASH:0:7}
al@16452 6 CATEGORY="network"
al@16452 7 SHORT_DESC="A cross platform forensic tool for Skype"
al@16452 8 MAINTAINER="al.bobylev@gmail.com"
al@16452 9 LICENSE="GPL3"
pascal@22825 10 WEB_SITE="http://osandamalith.github.io/SkypeFreak/"
al@16452 11 TARBALL="$PACKAGE-$VERSION.zip"
pascal@22825 12 WGET_URL="https://github.com/OsandaMalith/$PACKAGE/archive/$GITHASH.zip"
al@16452 13
al@16452 14 DEPENDS="python"
al@16453 15 BUILD_DEPENDS="wget"
al@16452 16
pascal@24476 17 # What is the latest version available today?
pascal@24476 18 current_version()
pascal@24476 19 {
pascal@24476 20 wget -O - ${WGET_URL%/*/*}/commits/master 2>/dev/null | \
pascal@24476 21 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
pascal@24476 22 }
pascal@24476 23
al@16452 24 # Rules to gen a SliTaz package suitable for Tazpkg.
al@16452 25 genpkg_rules()
al@16452 26 {
al@16455 27 mkdir -p $fs/usr/bin $fs/usr/share/applications
al@16452 28 cp -a $src/source/SkypeFreak.py $fs/usr/bin
al@16455 29 cp -a $stuff/*.desktop $fs/usr/share/applications
al@16452 30
al@16452 31 # fix bug with unicode strings (I'm not a pythonist, sorry)
al@16452 32 sed -i 's|str(|unicode(|g' $fs/usr/bin/SkypeFreak.py
al@16452 33 }