summaryrefslogtreecommitdiff
path: root/media-gfx/scangearmp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-11-24 20:16:33 +0000
committerV3n3RiX <venerix@redcorelinux.org>2017-11-24 20:16:33 +0000
commit981fa48ae94172c178a88ac4b1e1bde6555871fc (patch)
treebe085c53e6d5f00ce91a78c4076069f7044db0fe /media-gfx/scangearmp
parente3219480f6909e9a449bd8e53d271d05cf53d1c4 (diff)
media-gfx/scangearmp : don't throw away libraries randomly please
Diffstat (limited to 'media-gfx/scangearmp')
-rw-r--r--media-gfx/scangearmp/scangearmp-2.10-r2.ebuild (renamed from media-gfx/scangearmp/scangearmp-2.10-r1.ebuild)29
1 files changed, 19 insertions, 10 deletions
diff --git a/media-gfx/scangearmp/scangearmp-2.10-r1.ebuild b/media-gfx/scangearmp/scangearmp-2.10-r2.ebuild
index 94e135bb..f4e28314 100644
--- a/media-gfx/scangearmp/scangearmp-2.10-r1.ebuild
+++ b/media-gfx/scangearmp/scangearmp-2.10-r2.ebuild
@@ -76,7 +76,8 @@ pkg_setup() {
_prefix="/usr/"
_bindir="${_prefix}/bin"
- _libdir="/usr/$(get_libdir)" # either lib or lib32
+ _libdir32="/usr/lib32"
+ _libdir64="/usr/lib64"
_gimpdir="${_libdir}/gimp/2.0/plug-ins"
_udevdir="/etc/udev/rules.d"
@@ -171,17 +172,25 @@ src_install() {
fi
if use x86; then
- cp -a ${_prid}/libs_bin32/* ${D}${_libdir} || die
- cp -a com/libs_bin32/* ${D}${_libdir} || die
+ cp -a ${_prid}/libs_bin32/* ${D}${_libdir32} || die
+ cp -a com/libs_bin32/* ${D}${_libdir32} || die
else # amd54
- cp -a ${_prid}/libs_bin64/* ${D}${_libdir} || die
- cp -a com/libs_bin64/* ${D}${_libdir} || die
+ cp -a ${_prid}/libs_bin64/* ${D}${_libdir64} || die
+ cp -a com/libs_bin64/* ${D}${_libdir64} || die
fi
- cp -a ${_prid}/*.DAT ${D}${_libdir}/bjlib || die
- cp -a ${_prid}/*.tbl ${D}${_libdir}/bjlib || die
- cp com/ini/canon_mfp_net.ini ${D}${_libdir}/bjlib || die
- chmod 644 ${D}${_libdir}/bjlib/* || die
- chmod 666 ${D}${_libdir}/bjlib/canon_mfp_net.ini || die
+ if use x86; then
+ cp -a ${_prid}/*.DAT ${D}${_libdir32}/bjlib || die
+ cp -a ${_prid}/*.tbl ${D}${_libdir32}/bjlib || die
+ cp com/ini/canon_mfp_net.ini ${D}${_libdir32}/bjlib || die
+ chmod 644 ${D}${_libdir32}/bjlib/* || die
+ chmod 666 ${D}${_libdir32}/bjlib/canon_mfp_net.ini || die
+ else # amd64
+ cp -a ${_prid}/*.DAT ${D}${_libdir64}/bjlib || die
+ cp -a ${_prid}/*.tbl ${D}${_libdir64}/bjlib || die
+ cp com/ini/canon_mfp_net.ini ${D}${_libdir64}/bjlib || die
+ chmod 644 ${D}${_libdir64}/bjlib/* || die
+ chmod 666 ${D}${_libdir64}/bjlib/canon_mfp_net.ini || die
+ fi
# usb
if use usb; then