ghostscript-printer-app-git
LOW
maintainer dreieck
0 votes
scanned 2026-09-25 07:10:52.990950
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
2
3
_pkgname=ghostscript-printer-app
4
pkgname="${_pkgname}-git"
5
pkgver=1.0+r162.20260914.52decb4
6
pkgrel=1
7
pkgdesc="PostScript Printer Application"
8
url='https://github.com/OpenPrinting/ghostscript-printer-app'
9
license=("Apache-2.0")
10
arch=('x86_64')
11
depends=(
12
#'cups-filters>=2' 'cups-filters<3'
13
'cups' # For '/usr/lib/cups/' to which this software symlinks '/usr/lib/ghostscript-printer-app/'.
14
'glibc'
15
'libcups'
16
'libcupsfilters'
17
'libppd'
18
'pappl'
19
'pappl-retrofit'
20
)
21
optdepends=(
22
#"avahi: To be able to use ZeroConf names instead of IP addresses."
23
#"bind: To be able to use hostnames instead of IP addresses. ('host' executable.)"
24
)
25
makedepends=(
26
'git'
27
)
28
provides=(
29
"${_pkgname}=${pkgver}"
30
)
31
conflicts=(
32
"${_pkgname}"
33
)
34
source=(
35
"git+${url}.git"
36
)
37
sha256sums=(
38
'SKIP'
39
)
40
options=('emptydirs')
41
42
prepare() {
43
cd "${srcdir}/${_pkgname}"
44
45
git log > git.log
46
}
47
48
pkgver() {
49
cd "${srcdir}/${_pkgname}"
50
51
# _ver="$(git describe --tags | sed 's|^v||' | sed 's|\-[^-]*$||' | tr '-' '_')"
52
_ver="$(grep -E '^[[:space:]]*#[[:space:]]*define[[:space:]]+SYSTEM_VERSION_STR[[:space:]]+.' ghostscript-printer-app.c | sed -E 's|^[[:space:]]*#[[:space:]]*define[[:space:]]+SYSTEM_VERSION_STR[[:space:]]+(.)|\1|' | tr -d \"\'[[:space:]])"
53
_rev="$(git rev-list --count HEAD)"
54
_hash="$(git rev-parse --short HEAD)"
55
_date="$(git log -n 1 --format=tformat:%ci | awk '{print $1}' | tr -d '-')"
56
57
if [ -n "${_ver}" ]; then
58
printf %s "${_ver}+r${_rev}.${_date}.${_hash}"
59
else
60
error "Could not determine version."
61
return 1
62
fi
63
}
64
65
build() {
66
cd "${srcdir}/${_pkgname}"
67
68
make all
69
}
70
71
package() {
72
cd "${srcdir}/${_pkgname}"
73
74
make DESTDIR="${pkgdir}/" unitdir="${pkgdir}/usr/lib/systemd/system/" install
75
76
install -Dvm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" git.log CODE_OF_CONDUCT.md README.md NOTICE
77
install -Dvm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
78
}
79
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-25 07:10:52 | Low | 1 |