SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lives"

# SliTaz package receipt.

PACKAGE="lives"
VERSION="3.0.2"
CATEGORY="multimedia"
SHORT_DESC="Simple to use, yet powerful video editor and VJ tool."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://github.com/salsaman/LiVES"

SOURCE="LiVES"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WGET_URL="https://web.archive.org/web/20210507194525if_/http://lives-video.com/releases/$TARBALL"

DEPENDS="alsa-lib gtk+ libavc1394 liboil libpng libtheora mjpegtools sox"
BUILD_DEPENDS="alsa-lib alsa-lib-dev expat-dev gtk+-dev libpng-dev perl procps"

# What is the latest version available today?
current_version()
{
    wget -O - http://lives-video.com/index.php?do=downloads 2>/dev/null | \
    sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
#
compile_rules()
{
    sed -i 's|\$(LN_S) \$(DESTDIR)\$(bindir)/lives-exe|$(LN_S) lives-exe|' \
        Makefile*

    ./configure        \
        --prefix=/usr    \
        --disable-jack    \
        $CONFIGURE_ARGS &&
    make -j 1 &&
    make DESTDIR=$DESTDIR install 2>&1 | \
        sed "s/gmo': No such file/gmo': no such file/"
}

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

    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/lib/*.so*    $fs/usr/lib
    cp -a $install/usr/lib/lives    $fs/usr/lib
    cp -a $install/usr/share/lives    $fs/usr/share

    find $fs/usr/lib/lives -name "*.la" -exec rm '{}' \;

    # Fix the name (.desktop) file.
    sed -i 's/^Exec=.*/Exec=lives-exe/' \
        $install/usr/share/applications/LiVES.desktop
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)