wok annotate emu8051/receipt @ rev 25217
updated python-pdfkit (0.6.1 -> 1.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 15:33:13 2022 +0100 (2022-07-13) |
parents | 4c57dfb4f4c3 |
children |
rev | line source |
---|---|
pascal@22822 | 1 # SliTaz package receipt. |
pascal@22822 | 2 |
pascal@22822 | 3 PACKAGE="emu8051" |
pascal@22822 | 4 VERSION="2.0.1" |
pascal@22822 | 5 CATEGORY="development" |
pascal@22822 | 6 SHORT_DESC="Emulator and simulator for 8051 microcontrollers" |
pascal@22822 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@22822 | 8 LICENSE="GPL2" |
pascal@22822 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@22822 | 10 WEB_SITE="http://www.hugovil.com/projet.php?proj=$PACKAGE" |
pascal@22822 | 11 WGET_URL="http://www.hugovil.com/repository/$PACKAGE/$TARBALL" |
pascal@22822 | 12 TAG="8051 simulator" |
pascal@22822 | 13 |
pascal@22822 | 14 DEPENDS="readline libtinfo gtk+" |
pascal@22822 | 15 BUILD_DEPENDS="readline-dev libtinfo gtk+-dev" |
pascal@22822 | 16 |
pascal@24439 | 17 # What is the latest version available today? |
pascal@24439 | 18 current_version() |
pascal@24439 | 19 { |
pascal@24439 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24439 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q |
pascal@24439 | 22 } |
pascal@24439 | 23 |
pascal@22822 | 24 # Rules to configure and make the package. |
pascal@22822 | 25 compile_rules() |
pascal@22822 | 26 { |
pascal@22822 | 27 export LDFLAGS="$LDFLAGS -ltinfo" |
pascal@22822 | 28 ./configure \ |
pascal@22822 | 29 --prefix=/usr \ |
pascal@22822 | 30 --sysconfdir=/etc \ |
pascal@22822 | 31 --mandir=/usr/share/man \ |
pascal@22822 | 32 $CONFIGURE_ARGS && |
pascal@22822 | 33 make && |
pascal@22822 | 34 make DESTDIR=$DESTDIR install |
pascal@22822 | 35 } |
pascal@22822 | 36 |
pascal@22822 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@22822 | 38 genpkg_rules() |
pascal@22822 | 39 { |
pascal@22822 | 40 mkdir -p $fs/usr/share/applications |
pascal@22822 | 41 cp -a $install/usr/bin $fs/usr |
pascal@22822 | 42 cp -a $install/etc $fs |
pascal@22822 | 43 cat > $fs/usr/share/applications/emu8051.desktop <<EOT |
pascal@22822 | 44 [Desktop Entry] |
pascal@22822 | 45 Type=Application |
pascal@22822 | 46 Name=8051 simulator |
pascal@22824 | 47 Name[fr]=simulateur de 8051 |
pascal@22822 | 48 Exec=emu8051-gtk |
pascal@22824 | 49 Icon=computer |
pascal@22822 | 50 Categories=Development; |
pascal@22822 | 51 EOT |
pascal@22822 | 52 } |