wok-current view backintime/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 2b5eab54bb44 |
children | 7e911016a644 |
line source
1 # SliTaz package receipt.
3 PACKAGE="backintime"
4 VERSION="1.2.1"
5 CATEGORY="network"
6 TAGS="backup"
7 SHORT_DESC="A simple backup tool for linux."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://github.com/bit-team/backintime"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL"
15 DEPENDS="py3k rsync"
16 BUILD_DEPENDS="$DEPENDS meld" # python-glade2 python-gnome2
18 current_version()
19 {
20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src/common
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/* $fs
40 rm -r $fs/usr/share/doc
41 rm -r $fs/usr/share/man
42 }