SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "simple-scan"

# SliTaz package receipt.

PACKAGE="simple-scan"
VERSION="3.34.1"
CATEGORY="office"
SHORT_DESC="Simple scanning utility."
MAINTAINER="shann@slitaz.org"
LICENSE="GPL3"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://apps.gnome.org/SimpleScan/"
WGET_URL="https://gitlab.gnome.org/GNOME/$PACKAGE/-/archive/$VERSION/$TARBALL"

DEPENDS="gtk+3 sane-backends libgusb adwaita-icon-theme librsvg gsettings-desktop-schemas"
BUILD_DEPENDS="meson cairo-dev dbus-glib-dev gettext gtk+3-dev gdk-pixbuf-dev glib-dev \
itstool libgusb-dev libusb-dev pango-dev vala xz sane-backends-dev"

HOST_ARCH="i486 x86_64"

current_version()
{
    wget -O - "${WGET_URL%/arch*}/tags?sort=updated_desc" 2>/dev/null | \
    sed '/tar.gz/!d;s|.*/simple-scan-\(.*\).tar.gz".*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    # Fix build with meson > 0.60
    # see https://gitlab.gnome.org/GNOME/simple-scan/-/issues/284
    patch -p1 < $stuff/fix_meson.patch

    meson   _build        \
        --prefix=/usr &&
    ninja -C _build &&
    ninja -C _build install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/glib-2.0
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/share/glib-2.0 $fs/usr/share
    cp -a $install/usr/share/locale    $fs/usr/share
}
6107 packages and 261132 files in current database (Mon Jul 7 00:01:25 2025)