wok-6.x view ptxdist/receipt @ rev 25024

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 18 20:10:17 2022 +0000 (2022-05-18)
parents 7f9c1a9f91b2
children 7d53ff17b95a
line source
1 # SliTaz package receipt.
3 PACKAGE="ptxdist"
4 VERSION="2020.03.0"
5 CATEGORY="development"
6 SHORT_DESC="Reproducable Embedded Linux Systems."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.ptxdist.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://public.pengutronix.de/software/ptxdist/$TARBALL"
14 DEPENDS="ncurses ncursesw-extra slitaz-toolchain wget"
15 SUGGESTED="bazaar ccache elfkickers git subversion"
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;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/lib
28 cp -a $src $fs/usr/lib/buildroot
29 }
31 # Pre and post install commands for Tazpkg.
32 post_install()
33 {
34 [ -L "$1/usr/bin/wget" ] &&
35 tazpkg get-install wget --forced --root="${1:-/}"
36 cat <<EOT
37 Now you can do:
38 $ cd /usr/lib/buildroot
39 $ make menuconfig
40 EOT
41 }