wok-current view gsim51/receipt @ rev 25409
updated whois (5.5.6 -> 5.5.13)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Aug 03 17:56:22 2022 +0100 (2022-08-03) |
parents | 3b3749beba6d |
children | 7dd01dedad38 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gsim51"
4 VERSION="1.1"
5 CATEGORY="development"
6 SHORT_DESC="Text based simulator for the 8051 microcontroller."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="gSim51"
10 TARBALL="${SOURCE}v$VERSION.tar.gz"
11 WEB_SITE="http://$PACKAGE.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 TAGS="8051"
15 DEPENDS="ncurses"
16 BUILD_DEPENDS="ncurses-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/gsim51/files/gsim51/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/gSim51v||;s|.tar.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src/src
30 sed -i 's/-lncurses/& -ltinfo/' Makefile
31 sed -i 's|sim51.hlp|/usr/share/gsim51/&|' *funcs3.c
32 make
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/bin $fs/usr/share/gsim51 $fs/usr/share/applications
39 mkdir -p $install/usr/share
40 cp -a $src/docs $install/usr/share/doc
41 cp -a $src/bin/gSim51 $fs/usr/bin
42 cp -a $src/bin/sim51.hlp $fs/usr/share/gsim51/sim51.hlp
43 cat > $fs/usr/share/applications/gsim51.desktop <<EOT
44 [Desktop Entry]
45 Type=Application
46 Name=8051 simulator
47 Name[fr]=Simulateur de 8051
48 Exec=terminal -e gSim51
49 Icon=computer
50 Categories=ConsoleOnly;Utility;Development;
51 EOT
52 }