wok-6.x annotate ptxdist/receipt @ rev 24920

updated mp (5.2.10 -> 5.58)
author Hans-G?nter Theisgen
date Sun Apr 10 07:48:27 2022 +0100 (2022-04-10)
parents 7f9c1a9f91b2
children 7d53ff17b95a
rev   line source
pascal@14379 1 # SliTaz package receipt.
pascal@14379 2
pascal@14379 3 PACKAGE="ptxdist"
Hans-G?nter@23452 4 VERSION="2020.03.0"
pascal@14379 5 CATEGORY="development"
pascal@14379 6 SHORT_DESC="Reproducable Embedded Linux Systems."
pascal@14379 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
Hans-G?nter@21723 9 WEB_SITE="https://www.ptxdist.org/"
Hans-G?nter@21723 10
pascal@14379 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@21814 12 WGET_URL="https://public.pengutronix.de/software/ptxdist/$TARBALL"
pascal@14379 13
Hans-G?nter@21723 14 DEPENDS="ncurses ncursesw-extra slitaz-toolchain wget"
Hans-G?nter@21723 15 SUGGESTED="bazaar ccache elfkickers git subversion"
pascal@14379 16
pascal@24453 17 # What is the latest version available today?
pascal@24453 18 current_version()
pascal@24453 19 {
pascal@24453 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24453 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24453 22 }
pascal@24453 23
pascal@14379 24 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14379 25 genpkg_rules()
pascal@14379 26 {
pascal@14379 27 mkdir -p $fs/usr/lib
Hans-G?nter@21723 28 cp -a $src $fs/usr/lib/buildroot
pascal@14379 29 }
pascal@14379 30
pascal@14379 31 # Pre and post install commands for Tazpkg.
pascal@14379 32 post_install()
pascal@14379 33 {
Hans-G?nter@23452 34 [ -L "$1/usr/bin/wget" ] &&
Hans-G?nter@23452 35 tazpkg get-install wget --forced --root="${1:-/}"
pascal@14379 36 cat <<EOT
pascal@14379 37 Now you can do:
pascal@14379 38 $ cd /usr/lib/buildroot
pascal@14379 39 $ make menuconfig
pascal@14379 40 EOT
pascal@14379 41 }