blob: f38d0d654ecd7de3309d721d1d407b1b0e9c2316 (
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
|
1 i # Maintainer: Sven Hebrok <xoimex[at]gmail[dot]com>
1 i # Automatically created from cups PKGBUILD
s/# Maintainer: (.+)/# Upstream Maintainer: \1/g
s/.\/configure (.+) \\/.\/configure \1 --enable-gssapi --with-cups-build="cups-gssapi-${pkgver}" \\/
# replace cups with cups-gssapi in package definitions
/^(pkgbase|pkgname)=/ s/cups/cups-gssapi/g
/^package_\S*cups\(\)/ s/cups/cups-gssapi/g
# Replace description of subpackages
/^pkgdesc=/ s/(.*)"$/\1 - with gssapi (kerberos) enabled"/
# add krb5 dependency (was removed upstream)
# makedepends is multiline - insert after first line
/^makedepends=/ a 'krb5'
/^package_libcups-gssapi\(\)/,/depends=/ {
/depends=/ a depends+=("krb5")
}
# add provides fields to subpackages
/^package_cups-gssapi\(\)/ a provides=('cups')
/^package_libcups-gssapi\(\)/ a provides=("libcups=${pkgver%.r*}")
/^package_cups-gssapi\(\)/ a conflicts=('cups')
/^package_libcups-gssapi\(\)/ a conflicts=('libcups')
# fix usage of "${pkgbase}"
s/\$\{pkgbase\}/cups/g
# remove cups-filters make dependency as it is just causing trouble, and should only be a post-install dependency (already is for cups, not for libcups)
/^makedepends=/ s/'cups-filters' //
# if we do more patches, use this to update pkgrel:
# s/pkgrel=3/pkgrel=3.2/
|