SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "intel2gas"

# SliTaz package receipt.

PACKAGE="intel2gas"
VERSION="1.3.3"
CATEGORY="development"
SHORT_DESC="Convert assembler source file for NASM/MASM/TASM to GAS."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://web.archive.org/web/20141121141429/http://www.niksula.hut.fi/~mtiihone/intel2gas/"
WGET_URL="${WEB_SITE}$TARBALL"

DEPENDS="gcc-lib-base"

# What is the latest version available today?
current_version()
{
    # replace with https://github.com/skywind3000/Intel2GAS ?
    wget -O - https://github.com/skywind3000/Intel2GAS/commits/master 2>/dev/null | \
    sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    sed -i 's/strchr(str/strchr((char *) str/' strhandle.cc
    sed -i 's/strstr(source/strstr((char *) source/' intel2gas.cc
    sed -i 's/prefix = @/prefix = ${DESTDIR}@/' Makefile.in
    ./configure --prefix=/usr --infodir=/usr/share/info \
    --mandir=/usr/share/man \
    $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/usr $fs
}

5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)