SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "id3lib"

# SliTaz package receipt.

PACKAGE="id3lib"
VERSION="3.8.3"
CATEGORY="multimedia"
SHORT_DESC="Library to manipulate ID3v1  and ID3v2 tags."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://id3lib.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="zlib gcc-lib-base"
BUILD_DEPENDS="zlib-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    patch -p1 -i $stuff/id3lib-$VERSION-gcc-4.4.patch || return 1
    ./configure \
        --prefix=/usr \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib/*.so* $fs/usr/lib
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)