# SliTaz package receipt. PACKAGE="emu8051" VERSION="2.0.1" CATEGORY="development" SHORT_DESC="Emulator and simulator for 8051 microcontrollers" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.hugovil.com/projet.php?proj=$PACKAGE" WGET_URL="http://www.hugovil.com/repository/$PACKAGE/$TARBALL" TAG="8051 simulator" DEPENDS="readline libtinfo gtk+" BUILD_DEPENDS="readline-dev libtinfo gtk+-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { export LDFLAGS="$LDFLAGS -ltinfo" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/applications cp -a $install/usr/bin $fs/usr cp -a $install/etc $fs cat > $fs/usr/share/applications/emu8051.desktop <