mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
net-print/captdriver: new package, add 0.1.4
Signed-off-by: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
This commit is contained in:
1
net-print/captdriver/Manifest
Normal file
1
net-print/captdriver/Manifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DIST captdriver-0.1.4-m5.tar.gz 36578 BLAKE2B 0e8420755ce936d95403a49face6de8ade858210f12fcb0518a40f957b9b17223744f615f2242305fa4e0cbae9ab6892a0ae3c4cf710d7f9dc5f80f03ba3e323 SHA512 f6dab3ddc5df5c5aceebfdd077ee33ab6bbf26cbc5b518b76f35e35f7fcda256f3e162acaa10b1690ec98ead686be715035123ed05ebabbdd6ac81c3c5b7c3e0
|
||||||
71
net-print/captdriver/captdriver-0.1.4.ebuild
Normal file
71
net-print/captdriver/captdriver-0.1.4.ebuild
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
# Copyright 2025 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit autotools
|
||||||
|
|
||||||
|
MY_V="0.1.4-m5"
|
||||||
|
MY_P="${PN}-${MY_V}"
|
||||||
|
|
||||||
|
DESCRIPTION="Alternative driver for Canon CAPT printers"
|
||||||
|
HOMEPAGE="https://github.com/mounaiban/captdriver"
|
||||||
|
SRC_URI="https://github.com/mounaiban/captdriver/archive/refs/tags/${MY_V}.tar.gz -> ${MY_P}.tar.gz"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
net-print/cups
|
||||||
|
net-print/cups-filters
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
dev-build/automake
|
||||||
|
dev-build/autoconf
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eaclocal
|
||||||
|
eautoconf
|
||||||
|
eautomake --add-missing
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
default
|
||||||
|
./configure || die "./configure failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
default
|
||||||
|
make
|
||||||
|
ppdc -v -d . src/canon-lbp.drv
|
||||||
|
}
|
||||||
|
|
||||||
|
ppd_dir="/usr/share/ppd"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cups-config --serverbin || die -q "cups-config --serverbin failed"
|
||||||
|
insinto "$ppd_dir"
|
||||||
|
doins *.ppd
|
||||||
|
exeinto "$(cups-config --serverbin)/filter"
|
||||||
|
doexe src/rastertocapt
|
||||||
|
docinto
|
||||||
|
dodoc *.md
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
einfo "PPD files are installed into $ppd_dir"
|
||||||
|
einfo "You may want to add some printers that use CAPT driver"
|
||||||
|
einfo " lpadmin -p 'LBP2900' -v usb://Canon/LBP2900?serial=<serial> -P $ppd_dir/Canon-LBP2900-3000.ppd -E"
|
||||||
|
einfo " lpadmin -p 'LBP3000' -v usb://Canon/LBP3000?serial=<serial> -P $ppd_dir/Canon-LBP2900-3000.ppd -E"
|
||||||
|
einfo " lpadmin -p 'LBP3010' -v usb://Canon/LBP3100?serial=<serial> -P $ppd_dir/Canon-LBP3010.ppd.ppd -E"
|
||||||
|
einfo "You can find the <serial> with lpinfo -v command"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
ewarn "You may want to remove printers that depends on this package."
|
||||||
|
}
|
||||||
11
net-print/captdriver/metadata.xml
Normal file
11
net-print/captdriver/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>dangduong31205@gmail.com</email>
|
||||||
|
<name>Nguyen Dinh Dang Duong</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">mounaiban/captdriver</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
Reference in New Issue
Block a user