[arch-commits] Commit in imagescan/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Jan 28 03:05:12 UTC 2020
Date: Tuesday, January 28, 2020 @ 03:05:11
Author: foutrelis
Revision: 557057
archrelease: copy trunk to community-staging-x86_64
Added:
imagescan/repos/community-staging-x86_64/
imagescan/repos/community-staging-x86_64/PKGBUILD
(from rev 557056, imagescan/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: imagescan/repos/community-staging-x86_64/PKGBUILD (from rev 557056, imagescan/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-01-28 03:05:11 UTC (rev 557057)
@@ -0,0 +1,48 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Leonardo Santana Vieira <leosanvieira at gmail dot com>
+
+pkgname=imagescan
+pkgver=3.62.0
+_utsushiver=${pkgver/3./0.}
+pkgrel=2
+pkgdesc="EPSON Image Scan v3 front-end for scanners and all-in-ones"
+arch=(x86_64)
+url="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+license=(GPL3)
+depends=(sane gtkmm graphicsmagick boost-libs)
+makedepends=(boost)
+optdepends=('tesseract: OCR support')
+source=(https://support.epson.net/linux/src/scanner/imagescanv3/common/imagescan_$pkgver.orig.tar.gz)
+sha256sums=('683204986061c8833a30482b1ec7cd183aac079f464bd7d0a591ca0f97067e32')
+backup=('etc/utsushi/utsushi.conf')
+
+prepare() {
+ cd utsushi-$_utsushiver
+ sed -e 's|-Werror||g' -i configure.ac
+ rm -r upstream/boost # Remove vendored libraries
+ autoreconf -vif
+}
+
+build() {
+ cd utsushi-$_utsushiver
+ ./configure \
+ --prefix=/usr/ \
+ --libexecdir=/usr/lib/ \
+ --sysconfdir=/etc/ \
+ --enable-sane-config \
+ --enable-udev-config \
+ --with-gtkmm \
+ --with-jpeg \
+ --with-magick \
+ --with-magick-pp \
+ --with-sane \
+ --with-tiff
+# sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool # This breaks some scanners, https://bugs.archlinux.org/task/63491
+ make
+}
+
+package() {
+ cd utsushi-$_utsushiver
+ make DESTDIR="$pkgdir" install
+ install -Dm644 lib/devices.conf "$pkgdir"/etc/utsushi/utsushi.conf
+}
More information about the arch-commits
mailing list