wok-next annotate fasm/receipt @ rev 20526
Up mtpaint (3.49.13)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 23 17:51:29 2018 +0200 (2018-03-23) |
parents | e65059c1e0d7 |
children | 89e9788caef7 |
rev | line source |
---|---|
pascal@16158 | 1 # SliTaz package receipt. |
pascal@16158 | 2 |
pascal@16158 | 3 PACKAGE="fasm" |
pascal@19452 | 4 VERSION="1.71.57" |
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" |
pascal@16158 | 9 TARBALL="$PACKAGE-$VERSION.tgz" |
pascal@19452 | 10 EXTRA_SOURCE_FILES="FASMARM_small.ZIP" |
pascal@19452 | 11 WEB_SITE="http://flatassembler.net/" |
pascal@16158 | 12 WGET_URL="$WEB_SITE$TARBALL" |
pascal@16158 | 13 |
pascal@16158 | 14 # Rules to configure and make the package. |
pascal@16158 | 15 compile_rules() |
pascal@16158 | 16 { |
al@20513 | 17 [ -s $SRC/FASMARM_small.ZIP ] || |
al@20513 | 18 wget -P $SRC \ |
pascal@19452 | 19 http://arm.flatassembler.net/FASMARM_small.ZIP |
al@20513 | 20 unzip $SRC/FASMARM_small.ZIP |
pascal@19452 | 21 mv ReadMe.txt fasmarm.txt |
pascal@19452 | 22 sed 's/^character.*/&\npreprocessing_done db ?/' \ |
pascal@19452 | 23 < $src/SOURCE/LINUX/FASMARM.ASM > $src/source/Linux/fasmarm.asm |
pascal@19452 | 24 for i in $src/SOURCE/*.INC ; do |
pascal@19452 | 25 cp $i $src/source/$(basename $i | tr [A-Z] [a-z]) |
pascal@19452 | 26 done |
pascal@19452 | 27 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/doc/fasm |
pascal@16158 | 28 cd $src/source/Linux |
pascal@16158 | 29 ../../fasm fasm.asm $DESTDIR/usr/bin/fasm |
pascal@19452 | 30 ../../fasm fasmarm.asm $DESTDIR/usr/bin/fasmarm |
pascal@19452 | 31 cp ../../*.txt $DESTDIR/usr/share/doc/fasm |
pascal@16158 | 32 } |
pascal@16158 | 33 |
pascal@16158 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16158 | 35 genpkg_rules() |
pascal@16158 | 36 { |
pascal@19452 | 37 mkdir -p $fs/usr |
pascal@19452 | 38 cp -a $install/usr/bin $fs/usr |
pascal@16158 | 39 } |