1 # Copyright 2022 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="奔图打印机Linux驱动"
7 HOMEPAGE="https://www.pantum.cn/support/download/driver/"
11 SRC_URI="https://drivers.pantum.com/userfiles/files/download/%E9%A9%B1%E5%8A%A8%E6%96%87%E4%BB%B6/Pantum%20Linux%20Driver%20V1_1_94-1.zip"
23 net-print/cups-filters
25 media-gfx/sane-backends
36 app-text/ghostscript-gpl
38 S="${WORKDIR}/Pantum Linux Driver V1.1.94-1"
42 unpack "${S}/Resources/pantum_1.1.94-1_amd64.deb"
46 tar -xvf "${S}/data.tar.xz" -C "$D"
47 if ! use scanner ; then
48 rm -rf "${D}/usr/lib/x86_64-linux-gnu"
49 rm -rf "${D}/usr/local"
51 mv ${D}/usr/lib ${D}/usr/libexec
52 mkdir "${D}/etc/ld.so.conf.d/"
53 echo /opt/pantum/lib >> "${D}/etc/ld.so.conf.d/pantum.conf"