diff options
Diffstat (limited to 'extra/sane-frontends')
-rw-r--r-- | extra/sane-frontends/MissingCapsFlag.patch | 12 | ||||
-rw-r--r-- | extra/sane-frontends/PKGBUILD | 22 |
2 files changed, 34 insertions, 0 deletions
diff --git a/extra/sane-frontends/MissingCapsFlag.patch b/extra/sane-frontends/MissingCapsFlag.patch new file mode 100644 index 000000000..4175a87f8 --- /dev/null +++ b/extra/sane-frontends/MissingCapsFlag.patch @@ -0,0 +1,12 @@ +--- src/gtkglue.c 2005-04-16 15:12:07.000000000 +0200 ++++ src/gtkglue.c.new 2009-06-24 00:26:46.000000000 +0200 +@@ -1476,8 +1476,7 @@ + || opt->type == SANE_TYPE_GROUP || !dialog->element[i].widget) + continue; + +- if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE)) +- gtk_widget_set_sensitive (dialog->element[i].widget, sensitive); ++ gtk_widget_set_sensitive (dialog->element[i].widget, sensitive); + } + } + diff --git a/extra/sane-frontends/PKGBUILD b/extra/sane-frontends/PKGBUILD new file mode 100644 index 000000000..0389326dd --- /dev/null +++ b/extra/sane-frontends/PKGBUILD @@ -0,0 +1,22 @@ +# $Id: PKGBUILD 64806 2010-01-22 08:53:01Z eric $ +# Maintainer: Tobias Powalowski <tpowa@archlinux.org> +# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca> + +pkgname=sane-frontends +pkgver=1.0.14 +pkgrel=5 +pkgdesc="A set of frontends for SANE." +arch=(i686 x86_64) +url="http://www.sane-project.org" +license=('GPL') +depends=('sane' 'gimp' 'libjpeg>=7') +source=(ftp://ftp.sane-project.org/pub/sane/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz MissingCapsFlag.patch) +md5sums=('c63bf7b0bb5f530cf3c08715db721cd3' '770f66e0534953f6129e1fc03d88ae01') + +build() { + cd "$srcdir/$pkgname-$pkgver" + patch -p0 < ../MissingCapsFlag.patch || return 1 + ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + make || return 1 + make DESTDIR="$pkgdir" install || return 1 +} |