wok view dtach/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents 65ff25c4de90
children
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="https://dtach.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/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|.*a href="|"https://sourceforge.net|;s| .*||;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 }