wok annotate intel2gas/receipt @ rev 24924

Add as & asxxxx
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 13 10:27:34 2022 +0000 (2022-04-13)
parents 8dd8bab3f0ca
children a66f312c374b
rev   line source
pascal@4379 1 # SliTaz package receipt.
pascal@4379 2
pascal@4379 3 PACKAGE="intel2gas"
pascal@4379 4 VERSION="1.3.3"
pascal@4379 5 CATEGORY="development"
pascal@4379 6 SHORT_DESC="Convert assembler source file for NASM/MASM/TASM to GAS."
pascal@4379 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15600 8 LICENSE="GPL2"
pascal@4379 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20672 10 WEB_SITE="https://web.archive.org/web/20141121141429/http://www.niksula.hut.fi/~mtiihone/intel2gas/"
pascal@4379 11 WGET_URL="${WEB_SITE}$TARBALL"
pascal@15600 12
pascal@4379 13 DEPENDS="gcc-lib-base"
pascal@4379 14
pascal@24924 15 # What is the latest version available today?
pascal@24924 16 current_version()
pascal@24924 17 {
pascal@24924 18 # replace with https://github.com/skywind3000/Intel2GAS ?
pascal@24924 19 wget -O - https://github.com/skywind3000/Intel2GAS/commits/master 2>/dev/null | \
pascal@24924 20 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
pascal@24924 21 }
pascal@24924 22
pascal@4379 23 # Rules to configure and make the package.
pascal@4379 24 compile_rules()
pascal@4379 25 {
pascal@4379 26 cd $src
pascal@4379 27 sed -i 's/strchr(str/strchr((char *) str/' strhandle.cc
pascal@4379 28 sed -i 's/strstr(source/strstr((char *) source/' intel2gas.cc
pascal@4379 29 sed -i 's/prefix = @/prefix = ${DESTDIR}@/' Makefile.in
pascal@4379 30 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@4379 31 --mandir=/usr/share/man \
pascal@4379 32 $CONFIGURE_ARGS &&
pascal@4379 33 make &&
pascal@15600 34 make DESTDIR=$DESTDIR install
pascal@4379 35 }
pascal@4379 36
pascal@4379 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4379 38 genpkg_rules()
pascal@4379 39 {
pascal@15600 40 cp -a $install/usr $fs
pascal@4379 41 }
pascal@4379 42