# SliTaz package receipt. PACKAGE="sdcc" VERSION="4.0.0" CATEGORY="development" TAGS="cross compiler C 8051 Z80 68HC08 assembler" SHORT_DESC="Retargettable C compiler for 8051, Z80 and 68HC08." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://sdcc.sourceforge.net/" TARBALL="$PACKAGE-src-$VERSION.tar.bz2" WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL" DEPENDS="gcc83-lib-base" BUILD_DEPENDS="automake flex gcc83 gcc83-lib-base gputils libboost-graph-dev texinfo" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/sdcc/files/sdcc/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/sdcc/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure \ CC=gcc-83 \ CXX=g++-83 \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/usr $fs }