1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
# Contributor: Josef Miegl <josef@miegl.cz>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
# Contributor: Simo L. <neotuli@yahoo.com>
# Contributor: eric <eric@archlinux.org>
_pkg="sane"
pkgname="${_pkg}-git"
pkgver=1.1.1.r418.g9d721e461
pkgrel=1
pkgdesc="Scanner Access Now Easy"
url="http://www.${_pkg}-project.org/"
arch=('x86_64' 'i686' 'aarch64' 'armv7h')
license=('GPL')
depends=(
'libtiff>=4.0.0'
'libgphoto2'
'libjpeg'
'libusb'
'libcups'
'libieee1284'
'v4l-utils'
'avahi'
'bash'
'net-snmp')
makedepends=(
'git'
'texlive-latexextra'
'autoconf-archive')
backup=(
"etc/${_pkg}.d/"{abaton.conf,agfafocus.conf,apple.conf,artec.conf,artec_eplus48u.conf,avision.conf,bh.conf,canon.conf,canon630u.conf,canon_dr.conf,canon_pp.conf,cardscan.conf,coolscan2.conf,coolscan3.conf,coolscan.conf,dc25.conf,dc210.conf,dc240.conf,dell1600n_net.conf,dll.conf,dmc.conf,epjitsu.conf,epson.conf,epson2.conf,epsonds.conf,fujitsu.conf,genesys.conf,gphoto2.conf,gt68xx.conf,hp.conf,hp3900.conf,hp4200.conf,hp5400.conf,hpsj5s.conf,hs2p.conf,ibm.conf,kodak.conf,kodakaio.conf,leo.conf,lexmark.conf,ma1509.conf,magicolor.conf,matsushita.conf,microtek.conf,microtek2.conf,mustek.conf,mustek_pp.conf,mustek_usb.conf,nec.conf,net.conf,p5.conf,pie.conf,pieusb.conf,pixma.conf,plustek.conf,plustek_pp.conf,qcam.conf,ricoh.conf,rts8891.conf,s9036.conf,"${_pkg}d.conf",sceptre.conf,sharp.conf,sm3840.conf,snapscan.conf,sp15c.conf,st400.conf,stv680.conf,tamarack.conf,teco1.conf,teco2.conf,teco3.conf,test.conf,u12.conf,umax.conf,umax1220u.conf,umax_pp.conf,xerox_mfp.conf,v4l.conf}
"etc/xinetd.d/${_pkg}"
)
provides=(
"${_pkg}"
)
conflicts=(
"${_pkg}"
)
source=(
"git+https://gitlab.com/${_pkg}-project/backends.git"
"${_pkg}.xinetd"
"${_pkg}d.socket"
"${_pkg}d.service"
)
sha256sums=(
'SKIP'
'9d288d4fef0833da31ca1f1e9b4e567f81a4c03219af3b496d3fc3b6aac394eb'
'c06fdd54128b06efbf8fbcb40b145512fa8e8a1c470c5cb60abc839a6002fdf1'
'9e5274b0184249aaf1066e64c08fed2d65445e4ca95717497b30fc9d30a55ae3'
)
pkgver() {
cd "${srcdir}/backends"
git describe --long \
--tags | \
sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
local _configure_options=()
_configure_options=(
--prefix=/usr
--sbindir=/usr/bin
--sysconfdir=/etc
--localstatedir=/var
--with-docdir="/usr/share/doc/${_pkg}"
--enable-avahi
--enable-pthread
--disable-rpath
--enable-libusb_1_0
--disable-locking)
cd "${srcdir}/backends"
./autogen.sh
./configure "${_configure_options[@]}"
make
}
package () {
cd "${srcdir}/backends"
make \
DESTDIR="${pkgdir}" \
install
# fix hp officejets
echo "#hpaio" >> \
"${pkgdir}/etc/${_pkg}.d/dll.conf"
# install udev files
install -Dm0644 \
"tools/udev/lib${_pkg}.rules" \
"${pkgdir}/usr/lib/udev/rules.d/49-${_pkg}.rules"
# fix udev rules
sed -i \
's|NAME="%k", ||g' \
"${pkgdir}/usr/lib/udev/rules.d/49-${_pkg}.rules"
# install xinetd file
install -Dm644 \
"${srcdir}/${_pkg}.xinetd" \
"${pkgdir}/etc/xinetd.d/${_pkg}"
# Install the pkg-config file
install -Dm644 \
"tools/${_pkg}-backends.pc" \
"${pkgdir}/usr/lib/pkgconfig/${_pkg}-backends.pc"
# install systemd files
install -Dm644 \
"${srcdir}/${_pkg}d.socket" \
"${pkgdir}/usr/lib/systemd/system/${_pkg}d.socket"
install -Dm644 \
"${srcdir}/${_pkg}d.service" \
"${pkgdir}/usr/lib/systemd/system/${_pkg}d@.service"
}
# vim:set ts=2 sw=2 et:
|