ghostscript-printer-app-git

LOW
maintainer dreieck 0 votes scanned 2026-09-25 07:10:52.990950
View on AUR
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
4pkgname="${_pkgname}-git"
5pkgver=1.0+r162.20260914.52decb4
6pkgrel=1
7pkgdesc="PostScript Printer Application"
8url='https://github.com/OpenPrinting/ghostscript-printer-app'
9license=("Apache-2.0")
10arch=('x86_64')
11depends=(
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)
21optdepends=(
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)
25makedepends=(
26 'git'
27)
28provides=(
29 "${_pkgname}=${pkgver}"
30)
31conflicts=(
32 "${_pkgname}"
33)
34source=(
35 "git+${url}.git"
36)
37sha256sums=(
38 'SKIP'
39)
40options=('emptydirs')
41
42prepare() {
43 cd "${srcdir}/${_pkgname}"
44
45 git log > git.log
46}
47
48pkgver() {
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
65build() {
66 cd "${srcdir}/${_pkgname}"
67
68 make all
69}
70
71package() {
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)SeverityRules
2026-09-25 07:10:52 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion