wok view dtach/receipt @ rev 24974

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 02 11:23:24 2022 +0000 (2022-05-02)
parents 684b86356e87
children 7dd01dedad38
line source
1 # SliTaz package receipt.
3 PACKAGE="dtach"
4 VERSION="0.9"
5 CATEGORY="system-tools"
6 SHORT_DESC="Emulates the detach feature of screen."
7 MAINTAINER="christophe.paris@free.fr"
8 LICENSE="GPL2"
9 WEB_SITE="http://dtach.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://downloads.sourceforge.net/dtach/$TARBALL"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://sourceforge.net/projects/dtach/files/dtach/ 2>/dev/null | \
18 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
19 sed '/scope="row/!d;s|.*/dtach/||;s|/.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ./configure \
26 --prefix=/usr \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 $CONFIGURE_ARGS &&
30 make || return 1
31 # no install rules, let's do it by hand
32 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/man/man1
33 cp dtach $DESTDIR/usr/bin
34 cp dtach.1 $DESTDIR/usr/share/man/man1
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/bin
41 cp -a $install/usr/bin $fs/usr
42 }