blob: 4051698dc13777f1428ea7ec1ef7590af69fa74b (
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
56
57
58
59
60
61
62
63
64
|
# $Id$
# Maintainer: dreieck
_pkgname=cups-print-to-programme
pkgname="${_pkgname}"
pkgver=0.1.5
pkgrel=2
pkgdesc="Virtual printer for cups which prints to a file and opens that with a programme the user can choose in the settings. For example, print to gimp."
arch=('any')
depends=(
'cups'
'mariadb' # For the 'replace'-executable.
)
install=cups-programme.install
url="http://felics.kettenbruch.de/software/cups-print-to-programme/"
license=('GPL3')
source=(
"cups-programme.sh"
"cups-programme.conf"
"README.md"
"GPL3.txt"
"${install}"
)
optdepends=(
"ghostscript: To convert to PDF (also needed for SVG)."
"pdf2svg: To convert to SVG."
"imagemagick: To convert to PNG, TIFF, GIF or JPEG."
"graphicsmagick: To convert to PNG, TIFF, GIF or JPEG."
"kde-cli-tools: For 'kdesu' graphical frontend to run command as different user."
"kdesudo: For 'kdesudo' graphical frontend to run command as different user."
"x11-ssh-askpass: For a graphical password input frontend for sudo."
"lxqt-openssh-askpass: For a graphical password input frontend for sudo."
"openssh-askpass: For a graphical password input frontend for sudo."
"seahorse: For a graphical password input frontend for sudo."
"ksshaskpass: For a graphical password input frontend for sudo."
"gnome-ssh-askpass2: For a graphical password input frontend for sudo."
)
provides=("${_pkgname}-doc=${pkgver}")
backup=('etc/cups/cups-programme.conf')
sha256sums=('4f1cbf645a85df7b52f70138be67cf3840d4cc6bcb2ea4ab10034b869806cb6b'
'f583ed8969deef9e890b20c475bc24fd4eed8ef3c3a51544f9183fcc69d38c5c'
'fff96ebdac583c710fa8762e967929b905ed342a0b8977268741e40403a3e31c'
'3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986'
'0ee996783ae6848cf3c522de135646cb4b19670a48d6f1bf387b5b304f5506ad')
pkgver() {
cd "${srcdir}"
./cups-programme.sh --version
}
package() {
cd "${srcdir}"
_backend_name="$(./cups-programme.sh | awk '{print $2}')"
install -v -m 755 -D "cups-programme.sh" "${pkgdir}/usr/lib/cups/backend/${_backend_name}"
install -v -m 644 -D "cups-programme.conf" "${pkgdir}/etc/cups/cups-programme.conf"
install -v -m 644 -D "README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
install -v -m 644 -D "GPL3.txt" "${pkgdir}/usr/share/licenses/${pkgname}/GPL3.txt"
}
|