summarylogtreecommitdiffstats
path: root/_patch.sed
blob: 5926545a7d8e72b940a8aaf91014091218d2dfbd (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
1 i # Maintainer: Sven Hebrok <xoimex[at]gmail[dot]com>
1 i # Automatically created from cuops 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

# if we do more patches, use this to update pkgrel:
# s/pkgrel=3/pkgrel=3.2/