summaryrefslogtreecommitdiff
path: root/extra/sane/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/sane/PKGBUILD')
-rw-r--r--extra/sane/PKGBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/extra/sane/PKGBUILD b/extra/sane/PKGBUILD
index 6d0d26c57..49d0f1480 100644
--- a/extra/sane/PKGBUILD
+++ b/extra/sane/PKGBUILD
@@ -9,7 +9,7 @@ pkgver=1.0.22
pkgrel=4
pkgdesc="Scanner Access Now Easy"
url="http://www.sane-project.org/"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
depends=('libtiff>=3.9.2-2' 'libgphoto2>=2.4.7-2' 'libjpeg>=8' 'libieee1284' 'libusb-compat' 'v4l-utils' 'avahi' 'bash')
makedepends=('texlive-latexextra')
@@ -28,12 +28,20 @@ build() {
# fix https://bugs.archlinux.org/task/26114
patch -Np1 -i "${srcdir}"/xerox_mfp_fix_usb_devices.patch
+ if [ ${CARCH} == 'mips64el' ]; then
+ export CFLAGS="${CFLAGS} -O1"
+ EXTRAOPTS="--without-snmp"
+ else
+ EXTRAOPTS=""
+ fi
+
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-docdir=/usr/share/doc/sane \
--enable-avahi \
- --disable-locking
+ --disable-locking \
+ $EXTRAOPTS
make
}