SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lensfun"

# SliTaz package receipt.

PACKAGE="lensfun"
VERSION="0.3.3"
CATEGORY="multimedia"
SHORT_DESC="Database of photographic lenses and a library that allows advanced access to the database."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL3&version=cooking">LGPL3 GPL3"
WEB_SITE="https://lensfun.github.io/"

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

DEPENDS="glib"
BUILD_DEPENDS="cmake glib-dev libpng"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/latest/d;/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir    _build &&
    cd    _build &&
    cmake    ..                \
        -DCMAKE_INSTALL_PREFIX=/usr &&
    make    all && 
    make    install INSTALL_PREFIX="$DESTDIR"
}

# 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/lib/*.so*        $fs/usr/lib
    cp -a $install/usr/share/lensfun    $fs/usr/share
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)