SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "cddetect"

# SliTaz package receipt.

PACKAGE="cddetect"
VERSION="2.1"
CATEGORY="system-tools"
SHORT_DESC="Tries to detect the type of a CD/DVD without mounting it"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.bellut.net/projects.html#cddetect"
WGET_URL="http://www.bellut.net/files/$TARBALL"
TAGS="CD DVD"

# What is the latest version available today?
current_version()
{
    wget -O - http://www.bellut.net/projects.html 2>/dev/null | \
    sed '/cddetect-[0-9]/!d;s|.*cddetect-||;s|.t.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    #sed -i 's|-Wall|& -Wno-pointer-sign|' Makefile
    sed -i 's/<stdio.h>/&\n#include <limits.h>/' cddetect.c
    make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    cp  $src/cddetect $fs/usr/bin
}

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