SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "deadbeef"

# SliTaz package receipt.

PACKAGE="deadbeef"
VERSION="1.8.2"
CATEGORY="multimedia"
TAGS="music audio player mp3 ogg ape"
SHORT_DESC="Simple to use GTK+ audio player with systray support."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2 LGPL2.1"
WEB_SITE="https://deadbeef.sourceforge.io/"

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

SUGGESTED="deadbeef-plugins cdparanoia-III"
DEPENDS="alsa-lib atk cairo fontconfig freetype gdk-pixbuf glib gtk+ 
    jansson libgio libmad libvorbis pango xorg-libX11"
BUILD_DEPENDS="alsa-lib-dev cdparanoia-III-dev curl-dev flac-dev gettext 
    gtk+-dev intltool jansson-dev libcddb-dev libcdio-dev libcurl 
    libmad-dev libogg-dev libsamplerate-dev libsndfile libsndfile-dev 
    libvorbis-dev libzip-dev util-linux-uuid-dev yasm zlib-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    ./configure $CONFIGURE_ARGS &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    mkdir -p $fs/usr/lib/deadbeef
    mkdir -p $fs/usr/share
    mkdir -p $fs/usr/share/icons/hicolor

    cp -a $install/usr/bin    $fs/usr

    for i in alsa ddb_gui_GTK2 hotkeys vorbis mp3
      do
        cp -a $install/usr/lib/deadbeef/$i.so    $fs/usr/lib/deadbeef
      done

    for i in applications doc deadbeef
      do
        cp -a $install/usr/share/$i        $fs/usr/share
      done

    for i in 16 48
      do
        cp -a $install/usr/share/icons/hicolor/${i}x$i \
                            $fs/usr/share/icons/hicolor
      done
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)