SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "dvd+rw-tools"

# SliTaz package receipt.

PACKAGE="dvd+rw-tools"
VERSION="7.1"
CATEGORY="multimedia"
SHORT_DESC="DVD RW tools"
MAINTAINER="jozee@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://fy.chalmers.se/~appro/linux/DVD+RW" 
WGET_URL="$WEB_SITE/tools/$TARBALL"

DEPENDS="cdrkit"
BUILD_DEPENDS="cdrkit gcc-lib-base m4"

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

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    patch -p1 -i $stuff/build-7.1.patch
    grep -qs 'define u8' growisofs.c ||
    sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' growisofs.c
    make
    mkdir -p $DESTDIR/usr/bin/
    for bin in growisofs dvd+rw-booktype dvd+rw-format dvd+rw-mediainfo dvd-ram-control; do
        install -m755 $bin $DESTDIR/usr/bin/
    done
}

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

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