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 x86_64"

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()
{
    case $ARCH in
        i?86)
            sed -i 's|uname -m|echo i486|' Makefile.unix ;;
        x86_64)
            sed -i 's|uname -m|echo $ARCH|' Makefile.unix ;;
    esac

    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
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)