SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "cpige"

# SliTaz package receipt.

PACKAGE="cpige"
VERSION="1.7"
CATEGORY="multimedia"
TAGS="audio stream"
SHORT_DESC="A shoutcast and icecast stream downloader"
MAINTAINER="devel@slitaz.org"
LICENSE="GNU/GPL v2"
WEB_SITE="https://github.com/zehome/cpige"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/zehome/cpige/archive/refs/tags/$TARBALL"

DEPENDS="gtk+"
BUILD_DEPENDS="gdk-pixbuf-dev gettext-tools gtk+-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/zehome/cpige/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/[a-z]-*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    patch -p1 < $stuff/cpige.patch

    # build CLI program
    make clean &&
    make

    # build GUI program
    cd gui
    sed -i 's/gdk-2.0/gdk-pixbuf-2.0/' configure
    ./configure &&
    make
}

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

    mkdir -p $fs/usr/share/doc/cpige $install/usr/share/man
    cp -a $src/cpige.conf.example $fs/usr/share/doc/cpige
    cp -a $src/cpige.1.gz $install/usr/share/man

    # Because there is no label msgfmt in Makefile:
    mkdir -p $fs/usr/share/locale/fr/LC_MESSAGES
    # only french texts available
    msgfmt -o $fs/usr/share/locale/fr/LC_MESSAGES/cpige.mo \
        $src/gui/cpige-fr.po

    mkdir -p $fs/usr/share/icons/hicolor/22x22/apps/
    cp $src/gui/cpigeGUI.png $fs/usr/share/icons/hicolor/22x22/apps/

    mkdir -p $fs/usr/share/applications
    cp $stuff/cpige.desktop $fs/usr/share/applications

}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)