wok-6.x annotate fasm/receipt @ rev 20134
linux: update modules.list
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 28 22:10:24 2017 +0200 (2017-10-28) |
parents | 79ec85521a08 |
children | 259bf47dcced |
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 DEPENDS="" |
pascal@16158 | 15 BUILD_DEPENDS="" |
pascal@16158 | 16 |
pascal@16158 | 17 # Rules to configure and make the package. |
pascal@16158 | 18 compile_rules() |
pascal@16158 | 19 { |
pascal@19452 | 20 [ -s $SOURCES_REPOSITORY/FASMARM_small.ZIP ] || |
pascal@19452 | 21 wget -P $SOURCES_REPOSITORY \ |
pascal@19452 | 22 http://arm.flatassembler.net/FASMARM_small.ZIP |
pascal@19452 | 23 unzip $SOURCES_REPOSITORY/FASMARM_small.ZIP |
pascal@19452 | 24 mv ReadMe.txt fasmarm.txt |
pascal@19452 | 25 sed 's/^character.*/&\npreprocessing_done db ?/' \ |
pascal@19452 | 26 < $src/SOURCE/LINUX/FASMARM.ASM > $src/source/Linux/fasmarm.asm |
pascal@19452 | 27 for i in $src/SOURCE/*.INC ; do |
pascal@19452 | 28 cp $i $src/source/$(basename $i | tr [A-Z] [a-z]) |
pascal@19452 | 29 done |
pascal@19452 | 30 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/doc/fasm |
pascal@16158 | 31 cd $src/source/Linux |
pascal@16158 | 32 ../../fasm fasm.asm $DESTDIR/usr/bin/fasm |
pascal@19452 | 33 ../../fasm fasmarm.asm $DESTDIR/usr/bin/fasmarm |
pascal@19452 | 34 cp ../../*.txt $DESTDIR/usr/share/doc/fasm |
pascal@16158 | 35 } |
pascal@16158 | 36 |
pascal@16158 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16158 | 38 genpkg_rules() |
pascal@16158 | 39 { |
pascal@19452 | 40 mkdir -p $fs/usr |
pascal@19452 | 41 cp -a $install/usr/bin $fs/usr |
pascal@16158 | 42 } |