wok-current view sbackup/receipt @ rev 24348

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 02 18:01:43 2022 +0000 (2022-02-02)
parents 119fc801bf3b
children 076f424196b2
line source
1 # SliTaz package receipt.
3 PACKAGE="sbackup"
4 VERSION="0.11.6"
5 CATEGORY="network"
6 TAGS="backup"
7 SHORT_DESC="Simple backup."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="https://sourceforge.net/projects/sbackup/"
12 TARBALL="${PACKAGE}_$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="curlftpfs desktop-file-utils fuse gettext-base gvfs notify-python
16 pygtk python sshfs-fuse"
17 BUILD_DEPENDS="$DEPENDS python-setuptools"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/sbackup/files/sbackup/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
25 sed '/scope="row/!d;/tar/!ds|.*/sbackup_||;s|.tar.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 mkdir -p $DESTDIR/usr/share/sbackup
33 cp scripts/* $DESTDIR/usr/share/sbackup/
35 sed -i 's|dbus force-reload|echo &|;s|gconf-schemas|echo &|' \
36 Makefile
37 make &&
38 make DESTDIR=$DESTDIR/usr install
39 # sudo sbackupconfig
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cp -a $install/* $fs
46 }