wok view hd2u/receipt @ rev 25102

Use archive.org for some broken wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 21 16:00:20 2022 +0000 (2022-06-21)
parents be7981c477c5
children
line source
1 # SliTaz package receipt.
3 PACKAGE="hd2u"
4 VERSION="1.0.4"
5 CATEGORY="misc"
6 SHORT_DESC="Dos2Unix text file converter."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://hany.sk/~hany/software/hd2u/"
11 TARBALL="$PACKAGE-$VERSION.tgz"
12 WGET_URL="https://hany.sk/~hany/_data/hd2u/$TARBALL"
14 DEPENDS="popt"
15 BUILD_DEPENDS="popt-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 $CONFIGURE_ARGS &&
32 make -j 1 &&
33 make prefix=$DESTDIR/usr install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
40 cp -a $install/usr/bin $fs/usr
41 }
43 post_remove()
44 {
45 ln -s /bin/busybox "$1/usr/bin/dos2unix"
46 }