wok-current view iasl/receipt @ rev 24445
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 14:14:23 2022 +0000 (2022-02-14) |
parents | eccead0c1b9b |
children | 1bb618a02809 |
line source
1 # SliTaz package receipt.
3 PACKAGE="iasl"
4 VERSION="20200214"
5 CATEGORY="development"
6 SHORT_DESC="Intel ACPI Source Language compiler."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="other"
9 WEB_SITE="https://acpica.org"
11 SOURCE="acpica-unix"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/sites/acpica/files/$TARBALL"
15 BUILD_DEPENDS="bison flex"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://acpica.org/downloads 2>/dev/null | \
21 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # Fix building.
28 sed -i -e 's/-Werror//g' \
29 generate/unix/Makefile.config \
30 generate/unix/iasl/Makefile
32 make || return 1
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/bin
40 cp -a $src/generate/unix/bin/iasl $fs/usr/bin
41 cp -a $src/generate/unix/bin/acpisrc $fs/usr/bin
42 cp -a $src/generate/unix/bin/acpixtract $fs/usr/bin
43 }