# SliTaz package receipt. PACKAGE="iasl" VERSION="20211217" CATEGORY="development" SHORT_DESC="Intel ACPI Source Language compiler." MAINTAINER="slaxemulator@gmail.com" LICENSE="other" WEB_SITE="https://acpica.org" SOURCE="acpica-unix" TARBALL="$SOURCE-$VERSION.tar.gz" WGET_URL="$WEB_SITE/sites/acpica/files/$TARBALL" BUILD_DEPENDS="bison flex" # What is the latest version available today? current_version() { wget -O - https://acpica.org/downloads 2>/dev/null | \ sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { # Fix building. sed -i -e 's/-Werror//g' \ generate/unix/Makefile.config \ generate/unix/iasl/Makefile make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp -a $src/generate/unix/bin/iasl $fs/usr/bin cp -a $src/generate/unix/bin/acpisrc $fs/usr/bin cp -a $src/generate/unix/bin/acpixtract $fs/usr/bin }