wok annotate gsim51/receipt @ rev 21724

updated ptxdist again (2012.03.0 -> 2019.06.0)
author Hans-G?nter Theisgen
date Wed Jun 12 15:14:06 2019 +0100 (2019-06-12)
parents fdc47644be0f
children 932cd974e081
rev   line source
pascal@15827 1 # SliTaz package receipt.
pascal@15827 2
pascal@15827 3 PACKAGE="gsim51"
pascal@15827 4 VERSION="1.1"
pascal@15827 5 CATEGORY="development"
pascal@15827 6 SHORT_DESC="Text based simulator for the 8051 microcontroller."
pascal@15827 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15827 8 LICENSE="GPL2"
pascal@15827 9 SOURCE="gSim51"
pascal@15827 10 TARBALL="${SOURCE}v$VERSION.tar.gz"
pascal@15827 11 WEB_SITE="http://$PACKAGE.sourceforge.net/"
pascal@15827 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@18360 13 TAGS="8051"
pascal@15827 14
pascal@15827 15 DEPENDS="ncurses"
pascal@15830 16 BUILD_DEPENDS="ncurses-dev"
pascal@15827 17
pascal@15827 18 # Rules to configure and make the package.
pascal@15827 19 compile_rules()
pascal@15827 20 {
pascal@15827 21 cd $src/src
pascal@17673 22 sed -i 's/-lncurses/& -ltinfo/' Makefile
pascal@21692 23 sed -i 's|sim51.hlp|/usr/share/gsim51/&|' *funcs3.c
pascal@15827 24 make
pascal@15827 25 }
pascal@15827 26
pascal@15827 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15827 28 genpkg_rules()
pascal@15827 29 {
pascal@21692 30 mkdir -p $fs/usr/bin $fs/usr/share/gsim51 $fs/usr/share/applications
pascal@21692 31 mkdir -p $install/usr/share
pascal@21692 32 cp -a $src/docs $install/usr/share/doc
pascal@21692 33 cp -a $src/bin/gSim51 $fs/usr/bin
pascal@21692 34 cp -a $src/bin/sim51.hlp $fs/usr/share/gsim51/sim51.hlp
pascal@21692 35 cat > $fs/usr/share/applications/gsim51.desktop <<EOT
pascal@21692 36 [Desktop Entry]
pascal@21692 37 Type=Application
pascal@21692 38 Name=8051 simulator
pascal@21692 39 Name[fr]=Simulateur de 8051
pascal@21692 40 Exec=terminal -e gSim51
pascal@21692 41 Icon=computer
pascal@21692 42 Categories=ConsoleOnly;Utility;Development;
pascal@21692 43 EOT
pascal@15827 44 }