wok-6.x view fasm/receipt @ rev 24696
updated kamailio (5.3.2 -> 5.5.4)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Mar 13 17:05:22 2022 +0100 (2022-03-13) |
parents | 5132b984bf33 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="fasm"
4 VERSION="1.73.21"
5 CATEGORY="development"
6 SHORT_DESC="Assembly language programming for x86, x86-64 and ARM systems."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="other"
9 WEB_SITE="https://flatassembler.net/"
11 TARBALL="$PACKAGE-$VERSION.tgz"
12 WGET_URL="$WEB_SITE$TARBALL"
13 EXTRA_SOURCE_FILES="FASMARM_small.ZIP"
15 DEPENDS=""
16 BUILD_DEPENDS=""
18 current_version()
19 {
20 wget -O - $WEB_SITE/download.php 2>/dev/null | \
21 sed '/tar.gz/!d;s|.tar.*||;s|.*fasm-||'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 [ -s $SOURCES_REPOSITORY/FASMARM_small.ZIP ] ||
28 wget -P $SOURCES_REPOSITORY \
29 http://arm.flatassembler.net/FASMARM_small.ZIP
30 unzip $SOURCES_REPOSITORY/FASMARM_small.ZIP
32 mv ReadMe.txt fasmarm.txt
33 cp $src/SOURCE/LINUX/FASMARM.ASM $src/source/Linux/fasmarm.asm
34 for i in $src/SOURCE/*.INC
35 do
36 cp $i $src/source/$(basename $i | tr [A-Z] [a-z])
37 done
39 mkdir -p $DESTDIR/usr/bin
40 mkdir -p $DESTDIR/usr/share/doc/fasm
42 cd $src/source/Linux
43 ../../fasm fasm.asm $DESTDIR/usr/bin/fasm
44 sed -i '/al,8Ah/{Nx}/check_for_used/{px}' \
45 ../exprcalc.inc
46 ../../fasm fasmarm.asm $DESTDIR/usr/bin/fasmarm
47 cp ../../*.txt $DESTDIR/usr/share/doc/fasm
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr
54 cp -a $install/usr/bin $fs/usr
55 }