blob: de473f539c81db13c46aa5881a4be596c953f6ae (
plain)
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
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit unpacker udev
MY_PV="${PV/_p/-}"
DESCRIPTION="SANE driver for Brother DS-series scanners"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"
SRC_URI="http://download.brother.com/welcome/dlf100976/${PN/-bin}_${MY_PV}_amd64.deb"
S="${WORKDIR}"
LICENSE="metapackage"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="mirror"
QA_PREBUILT=".*"
RDEPEND="media-gfx/sane-backends"
DEPEND="${RDEPEND}"
src_unpack() {
unpack_deb ${A}
}
src_install() {
insinto /usr/lib64/sane
insopts -m0755
doins "usr/lib/tmp_DSDriver/x64/dsdrv_x64.so"
doins "usr/lib/tmp_DSDriver/x64/NvUSBScan_x64.so"
doins "usr/lib/tmp_DSDriver/x64/libsane-dsseries.so.1.0.17"
dosym "libsane-dsseries.so.1.0.17" "usr/lib64/sane/libsane-dsseries.so.1"
dosym "libsane-dsseries.so.1" "usr/lib64/sane/libsane-dsseries.so"
insinto /etc/sane.d/dll.d
insopts -m0644
doins "${FILESDIR}/dsseries.conf"
insinto /etc/sane.d
doins "usr/lib/tmp_DSDriver/dsseries.conf"
udev_dorules "${FILESDIR}/60-libsane-dsseries.rules"
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}
|