SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "exif"

# SliTaz package receipt.

PACKAGE="exif"
VERSION="0.6.21"
CATEGORY="graphics"
SHORT_DESC="Read exif data from images"
MAINTAINER="sygne@ombres.eu"
LICENSE="LGPL2.1"
WEB_SITE="https://libexif.sourceforge.net/"

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

DEPENDS="libexif popt"
BUILD_DEPENDS="libexif libexif-dev popt-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    ./configure \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS &&
    make -j 1 &&
    make DESTDIR=$DESTDIR install
}

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

    # localisation
    mkdir -p $fs/usr/share/locale
    LOCALES="da de es fr id it zh_CN"
    for locale in $LOCALES
        do
        cp -a -r  $install/usr/share/locale/$locale \
                $fs/usr/share/locale
        done
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)