Package Details: xsane-gimp-git 0.999.r321.gc5ac0d9-1

Git Clone URL: https://aur.archlinux.org/xsane-git.git (read-only, click to copy)
Package Base: xsane-git
Description: XSane Gimp plugin. Git version.
Upstream URL: https://gitlab.com/sane-project/frontend/xsane
Keywords: gimp git sane scan scanner xsane
Licenses: GPLv2
Conflicts: xsane-gimp
Provides: xsane-gimp
Submitter: JonnyRobbie
Maintainer: JonnyRobbie
Last Packager: JonnyRobbie
Votes: 5
Popularity: 0.44
First Submitted: 2020-02-25 19:23 (UTC)
Last Updated: 2025-10-06 19:24 (UTC)

Latest Comments

1 2 Next › Last »

DanielH commented on 2026-03-14 19:42 (UTC) (edited on 2026-03-14 19:44 (UTC) by DanielH)

@JonnyRobbie

I've installed Xsane via xsane-git tarball and makepkg -si
Xsane seems be installed, but:
1. There is not icon for Xsane in LXQt menu;
2. There is not .desktop file for Xsane in /usr/share/applications;
3. Launching Xsane from Qterminal brings up Xsane, scan for devices correctly and shows main window and Preview window by default, and using the Xsane's menu launchs Histogram, Batch scan and Advanced options windows as expected.
4. The worst things: Trying to scan or acquire preview do NOT work. in Qterminal shows:
[xsane] ERROR: xsane-startimage not found. Looks like xsane is not installed correct.
[xsane] ERROR: xsane-startimage not found. Looks like xsane is not installed correct.
[xsane] ERROR: xsane-startimage not found. Looks like xsane is not installed correct.
5. Looking as root for xsane-startimage link, binary or internal link using find command, there is not results.
6. Looking in /usr/bin/, there is two executables:
-rwxr-xr-x 1 root root 749136 mar 14 15:45 xsane
-rwxr-xr-x 1 root root 749040 mar 14 15:45 xsane-gimp

Please, could you tell me what are the causes of these malfunctions?
Your help will be appreciated.

Best regards, DanielH

JonnyRobbie commented on 2025-10-06 19:27 (UTC)

gimp 3.1 still looks in /usr/lib/gimp/3.0/plug-ins

I needed to fix the actual plugin subdir.

moormaster commented on 2025-09-30 12:23 (UTC)

xsane plugin is not showing up in gimp 3.x. Please update installation of gimp 3.0 plugin in the prepare() method:

Gimp 3.0 expects each plugin to reside in a subfolder in /usr/lib/3.0/plugins:

prepare() {
  ...
  mkdir -p "$pkgdir/usr/lib/gimp/3.0/plug-ins/xsane"
  ln -sf /usr/bin/xsane-gimp "$pkgdir"/usr/lib/gimp/3.0/plug-ins/xsane/xsane
}

timothy.lee commented on 2025-08-26 11:26 (UTC)

gimptool --gimplugindir can be used to determine the plugin directory for the installed version of GIMP, however I'm not sure how it can be used at run-time to create the required symbolic link, since the post_install script of a package is "run chrooted inside the pacman install directory" according to https://wiki.archlinux.org/title/PKGBUILD

maderios commented on 2025-08-25 10:50 (UTC)

/usr/lib/gimp/3.0/plug-ins not detected in Gimp 3.1 (git version)

JonnyRobbie commented on 2025-08-24 18:40 (UTC)

Much thanks, @timothy.lee. I've just updated the pkgbuild.

timothy.lee commented on 2025-08-23 02:23 (UTC)

Latest git switched to GTK3, and supports both GIMP 2.x and 3.x.

Here is an updated PKGBUILD file:

# Maintainer: JonnyRobbie

pkgbase=xsane-git
pkgname=('xsane-git' 'xsane-gimp-git')
_gitname=xsane
pkgver=0.999.r319.g87edc38
pkgrel=1
arch=(x86_64)
url="https://gitlab.com/sane-project/frontend/xsane"
license=('GPLv2')
makedepends=('autoconf' 'automake' 'gtk3' 'lcms2' 'sane' 'zlib' 'libjpeg' 'gimp')
source=(git+https://gitlab.com/sane-project/frontend/$_gitname.git)
sha512sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$srcdir/$_gitname"
  autoreconf -fiv
}

build() {
  cd "$srcdir/$_gitname"

  # make with gimp support
  ./configure \
    --prefix=/usr \
    --mandir=/usr/share/man \
    --enable-gimp
  make
  mv src/xsane src/xsane-gimp

  # make without gimp support
  make clean
  ./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --mandir=/usr/share/man \
    --disable-gimp
  make
}

package_xsane-git() {
  pkgdesc="A GTK-based X11 frontend for SANE and plugin for Gimp. Git version."
  depends=('gtk3' 'lcms2' 'sane' 'zlib' 'libjpeg')
  optdepends=('xsane-gimp: for gimp plugin support')
  conflicts=('xsane')
  provides=('xsane')

  cd "$srcdir/$_gitname"
  make DESTDIR=$pkgdir install
}

package_xsane-gimp-git() {
  pkgdesc="XSane Gimp plugin. Git version."
  depends=('xsane' 'gimp')
  conflicts=('xsane-gimp')
  provides=('xsane-gimp')

  cd "$srcdir/$_gitname"
  install -D -m755 src/xsane-gimp "$pkgdir/usr/bin/xsane-gimp"

  ## Link the plugin binary to gimp plug-in directories
  mkdir -p "$pkgdir/usr/lib/gimp/2.0/plug-ins"
  ln -sf /usr/bin/xsane-gimp "$pkgdir"/usr/lib/gimp/2.0/plug-ins/xsane
  mkdir -p "$pkgdir/usr/lib/gimp/3.0/plug-ins"
  ln -sf /usr/bin/xsane-gimp "$pkgdir"/usr/lib/gimp/3.0/plug-ins/xsane
}

moormaster commented on 2025-06-29 13:45 (UTC)

For gimp 3.0 to recognize the xsane-gimp plugin it must be placed in the folder /usr/lib/gimp/3.0/plugins/xsane/

like this:

install -D -m755 src/xsane-gimp "$pkgdir/usr/lib/gimp/3.0/plug-ins/xsane/xsane"

aboliveira commented on 2025-06-13 13:35 (UTC)

This is a working PKGBUILD:

# Maintainer: JonnyRobbie

pkgbase=xsane-git
pkgname=('xsane-git' 'xsane-gimp-git')
_gitname=xsane
pkgver=0.999.r319.g87edc38
# Bump pkgrel for our fixes
pkgrel=1
arch=('x86_64')
url="https://gitlab.com/sane-project/frontend/xsane"
license=('GPLv2')
# Add autoconf and automake for generating build scripts
makedepends=('autoconf' 'automake' 'gtk2' 'lcms2' 'sane' 'zlib' 'libjpeg' 'gimp')
source=("git+https://gitlab.com/sane-project/frontend/$_gitname.git")
sha512sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

# Use prepare() to set up the source code before building
prepare() {
  cd "$srcdir/$_gitname"

  # Generate the ./configure script and other necessary build files
  # The -fiv flags mean: force, install missing auxiliary files, and be verbose
  autoreconf -fiv

  # Fix GTK+ timer callbacks that now require a pointer argument
  sed -i 's/static gint xsane_batch_scan_gamma_event()/static gint xsane_batch_scan_gamma_event(gpointer data)/' src/xsane-gamma.c
  sed -i 's/static gint xsane_slider_hold_event()/static gint xsane_slider_hold_event(gpointer data)/' src/xsane-gamma.c

  # Fix conflicting function types between declaration (.h) and definition (.c)
  sed -i 's/extern void xsane_cancel_save();/extern void xsane_cancel_save(int *cancel_save);/' src/xsane-save.h
}

build() {
  cd "$srcdir/$_gitname"

  # make with gimp support
  ./configure \
    --prefix=/usr \
    --mandir=/usr/share/man \
    --enable-gimp
  make
  mv src/xsane src/xsane-gimp

  # make without gimp support
  make clean
  ./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --mandir=/usr/share/man \
    --disable-gimp
  make
}

package_xsane-git() {
  pkgdesc="A GTK-based X11 frontend for SANE and plugin for Gimp. Git version."
  depends=('gtk2' 'lcms2' 'sane' 'zlib' 'libjpeg')
  optdepends=('xsane-gimp-git: for gimp plugin support')
  conflicts=('xsane')
  provides=("xsane=$pkgver")

  cd "$srcdir/$_gitname"
  make DESTDIR="$pkgdir" install
}

package_xsane-gimp-git() {
  pkgdesc="XSane Gimp plugin. Git version."
  depends=('xsane-git' 'gimp')
  conflicts=('xsane-gimp')
  provides=("xsane-gimp=$pkgver")

  cd "$srcdir/$_gitname"
  # Corrected install path for gimp plugin
  install -D -m755 src/xsane-gimp "$pkgdir/usr/lib/gimp/2.0/plug-ins/xsane"
}

eliran commented on 2025-05-18 20:12 (UTC)

the ./configure script is missing from the source top dir (as it is a git revision. as of upstream commit 2eee8154). a manual running of autoreconf is required to make it available before build can proceed. at least until they'll plug an autogen.sh script or similar (this issue is 5 years old though https://gitlab.com/sane-project/frontend/xsane/-/issues/6)