wok view gsim51/receipt @ rev 21692

simple-mtpfs: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 04 11:06:20 2019 +0200 (2019-06-04)
parents fdc47644be0f
children 932cd974e081
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src/src
22 sed -i 's/-lncurses/& -ltinfo/' Makefile
23 sed -i 's|sim51.hlp|/usr/share/gsim51/&|' *funcs3.c
24 make
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $fs/usr/share/gsim51 $fs/usr/share/applications
31 mkdir -p $install/usr/share
32 cp -a $src/docs $install/usr/share/doc
33 cp -a $src/bin/gSim51 $fs/usr/bin
34 cp -a $src/bin/sim51.hlp $fs/usr/share/gsim51/sim51.hlp
35 cat > $fs/usr/share/applications/gsim51.desktop <<EOT
36 [Desktop Entry]
37 Type=Application
38 Name=8051 simulator
39 Name[fr]=Simulateur de 8051
40 Exec=terminal -e gSim51
41 Icon=computer
42 Categories=ConsoleOnly;Utility;Development;
43 EOT
44 }