SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "potamus"

# SliTaz package receipt.

PACKAGE="potamus"
VERSION="17"
CATEGORY="multimedia"
TAGS="music audio player mp3 ogg flac"
SHORT_DESC="Unbloated and easy to use GTK+ Audio player."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
WEB_SITE="http://offog.org/code/potamus/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="http://offog.org/files/$TARBALL"

DEPENDS="alsa-lib gtk+ libglade libmad libogg libsamplerate libvorbis" 
BUILD_DEPENDS="alsa-lib-dev gtk+-dev libglade-dev libmad-dev \
    libogg-dev libsamplerate-dev libvorbis-dev"

HOST_ARCH="i486 arm"

# Handle arch install
case "$SLTAZ_ARCH" in
    i?86) DEPENDS="$DEPENDS flac" ;;
esac

# Handle cross compilation.
case "$ARCH" in
    i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev"
          export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm" ;;
    arm*) ARCH_ARGS="--disable-input-flac" ;;
esac

# 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()
{
    # libmad for MP3
    ./configure                \
        --disable-input-modplug        \
        --disable-input-audiofile    \
        --disable-input-opus        \
        --disable-output-ao        \
        --disable-output-jack        \
        $CONFIGURE_ARGS ${ARCH_ARGS} &&
    make &&
    make install &&
    sed -i s'/Name=.*/Name=Potamus Audio Player/' \
        ${DESTDIR}/usr/share/applications/*.desktop
}

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

    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/share/${PACKAGE}    $fs/usr/share
    cp -a $install/usr/share/icons/hicolor/48x48/*/${PACKAGE}.png \
        $fs/usr/share/pixmaps
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)