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