blob: 85a7f7466a728600f16a3c6eb2074d36934dc307 (
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
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=cups-pdf
pkgver=3.0.1
pkgrel=1
pkgdesc="CUPS PDF printer"
url="https://www.cups-pdf.de"
arch="all"
license="GPL"
makedepends="cups-dev"
options="!check"
pkgusers="lp"
pkggroups="lp"
source="https://www.cups-pdf.de/src/cups-pdf_$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir/src"
gcc -Os -s cups-pdf.c -o cups-pdf -lcups
}
package() {
cd "$builddir"
install -D -m755 src/cups-pdf "$pkgdir"/usr/lib/cups/backend/cups-pdf
install -D -m644 extra/cups-pdf.conf "$pkgdir"/etc/cups/cups-pdf.conf
install -D -m644 extra/CUPS-PDF_opt.ppd "$pkgdir"/usr/share/ppd/cups-pdf/cups-pdf.ppd
install -d -o lp -g lp "$pkgdir"/var/spool/cups-pdf
}
sha512sums="a06580f3056dddbb883c8db0c71b37b883482ae1ac8aa9bcfd85e679c4dcb44278006b7110d2988173d0eeb05b0f19fb39081fad49bf26839235e97fbe27a818 cups-pdf_3.0.1.tar.gz"
|