SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libcdio"

# SliTaz package receipt.

PACKAGE="libcdio"
VERSION="2.1.0"
CATEGORY="multimedia"
SHORT_DESC="GNU Compact Disk Input and Control Library."
MAINTAINER="rj.rohit@gmail.com"
LICENSE="GPL3"
WEB_SITE="https://www.gnu.org/software/libcdio/" 

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="$GNU_MIRROR/libcdio/$TARBALL"

DEPENDS="gcc-lib-base libcddb ncurses"
BUILD_DEPENDS="gcc-lib-base libcddb libcddb-dev ncurses-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/paranoia/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -ltinfo"
    grep -qs 'define u8' lib/driver/gnu_linux.c ||
    sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
        lib/driver/gnu_linux.c

    ./configure            \
        --prefix=/usr        \
        --disable-vcd-info    \
        $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
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)