wok-6.x annotate dmidecode/receipt @ rev 25509
sgmixer: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 12 13:14:45 2023 +0000 (22 months ago) |
parents | 17091bc7c301 |
children |
rev | line source |
---|---|
erjo@621 | 1 # SliTaz package receipt. |
erjo@621 | 2 |
erjo@621 | 3 PACKAGE="dmidecode" |
Hans-G?nter@24489 | 4 VERSION="3.3" |
erjo@621 | 5 CATEGORY="system-tools" |
erjo@621 | 6 SHORT_DESC="SMBIOS/DMI reports." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2" |
Hans-G?nter@24489 | 9 WEB_SITE="https://www.nongnu.org/dmidecode/" |
Hans-G?nter@20840 | 10 |
Hans-G?nter@20840 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@24489 | 12 WGET_URL="https://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL" |
erjo@621 | 13 |
pascal@15579 | 14 DEPENDS="" |
pascal@15579 | 15 |
pascal@24415 | 16 # What is the latest version available today? |
pascal@24415 | 17 current_version() |
pascal@24415 | 18 { |
pascal@24415 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24415 | 20 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q |
pascal@24415 | 21 } |
pascal@24415 | 22 |
erjo@621 | 23 # Rules to configure and make the package. |
erjo@621 | 24 compile_rules() |
erjo@621 | 25 { |
pascal@20212 | 26 sed -i 's|uname -m|echo i486|' Makefile |
Hans-G?nter@20840 | 27 |
Hans-G?nter@24489 | 28 make && |
Hans-G?nter@24489 | 29 make install DESTDIR=$DESTDIR |
erjo@621 | 30 } |
erjo@621 | 31 |
erjo@621 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@621 | 33 genpkg_rules() |
erjo@621 | 34 { |
erjo@621 | 35 mkdir -p $fs/usr/sbin |
Hans-G?nter@24489 | 36 cp -a $install/usr/local/sbin/* $fs/usr/sbin |
erjo@621 | 37 } |