wok-6.x annotate fasm/receipt @ rev 20604
Up linux-libre (3.18.129)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 17 23:42:42 2018 +0100 (2018-12-17) |
parents | 259bf47dcced |
children | db1b23d518a8 |
rev | line source |
---|---|
pascal@16158 | 1 # SliTaz package receipt. |
pascal@16158 | 2 |
pascal@16158 | 3 PACKAGE="fasm" |
pascal@20330 | 4 VERSION="1.73.04" |
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@20331 | 25 cp $src/SOURCE/LINUX/FASMARM.ASM $src/source/Linux/fasmarm.asm |
pascal@19452 | 26 for i in $src/SOURCE/*.INC ; do |
pascal@19452 | 27 cp $i $src/source/$(basename $i | tr [A-Z] [a-z]) |
pascal@19452 | 28 done |
pascal@19452 | 29 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/doc/fasm |
pascal@16158 | 30 cd $src/source/Linux |
pascal@16158 | 31 ../../fasm fasm.asm $DESTDIR/usr/bin/fasm |
pascal@19452 | 32 ../../fasm fasmarm.asm $DESTDIR/usr/bin/fasmarm |
pascal@19452 | 33 cp ../../*.txt $DESTDIR/usr/share/doc/fasm |
pascal@16158 | 34 } |
pascal@16158 | 35 |
pascal@16158 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16158 | 37 genpkg_rules() |
pascal@16158 | 38 { |
pascal@19452 | 39 mkdir -p $fs/usr |
pascal@19452 | 40 cp -a $install/usr/bin $fs/usr |
pascal@16158 | 41 } |