SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lame"

# SliTaz package receipt.

PACKAGE="lame"
VERSION="3.100"
CATEGORY="multimedia"
TAGS="audio encoder mp3"
SHORT_DESC="MPEG Audio Layer III (MP3) encoder."
MAINTAINER="pankso@slitaz.org"
LICENSE="LGPL2"
WEB_SITE="https://lame.sourceforge.net/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="ncurses"
BUILD_DEPENDS="gtk+-dev ncurses-dev libtinfo"
HOST_ARCH="i486 arm"

case "$ARCH" in
    arm) BUILD_DEPENDS="ncurses-dev libtinfo" ;;
esac

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/lame/files/lame/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/lame/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|uname -m|echo i486|' Makefile.unix
    export LDFLAGS="$LDFLAGS -ltinfo"

    ./configure                \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS &&
    make -j 1 &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib

    cp -a $install/usr/lib/*.so*    $fs/usr/lib
    cp -a $install/usr/bin        $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)