wok view emu8051/receipt @ rev 24605

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