wok-6.x view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="SkypeFreak"
4 GITHASH="9347a651e724b41a8da3bc77568577f3c8ed3036"
5 VERSION=${GITHASH:0:7}
6 CATEGORY="network"
7 SHORT_DESC="A cross platform forensic tool for Skype"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="GPL3"
10 WEB_SITE="http://osandamalith.github.io/SkypeFreak/"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="https://github.com/OsandaMalith/$PACKAGE/archive/$GITHASH.zip"
14 DEPENDS="python"
15 BUILD_DEPENDS="wget"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*/*}/commits/master 2>/dev/null | \
21 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/bin $fs/usr/share/applications
28 cp -a $src/source/SkypeFreak.py $fs/usr/bin
29 cp -a $stuff/*.desktop $fs/usr/share/applications
31 # fix bug with unicode strings (I'm not a pythonist, sorry)
32 sed -i 's|str(|unicode(|g' $fs/usr/bin/SkypeFreak.py
33 }