wok view gsim51/receipt @ rev 25460

Update sourceforge.net web_sites with https://
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 08:10:35 2022 +0000 (2022-09-28)
parents 932cd974e081
children 6b33f9da53d4
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="https://$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 }