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 '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
}

# 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
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)