Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/gpgme/PKGBUILD
blob: 99c8b23165a1893968cddab2ce4ddabe48dedb2a (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
# https://dev.gnupg.org/T4191
# patch from Debian, see: https://salsa.debian.org/debian/gpgme/blob/debian/master/debian/patches/0004-Avoid-Y2038-problem-on-32-bit-architectures.patch

source+=(0004-Avoid-Y2038-problem-on-32-bit-architectures.patch)
sha256sums+=('0c788590e0bb7cc9da04457f94360ceef9cb9fc0525e6bfbf9fbb8d72801ae8f')

prepare() {
  cd ${pkgbase}-${pkgver}
  patch -Np1 -i "$srcdir/0004-Avoid-Y2038-problem-on-32-bit-architectures.patch"
}

# no GUI stuff on i486
makedepends=(${makedepends[@]//qt5-base/})
makedepends_i686+=(qt5-base)

# i486-specific
if [ "${CARCH}" = "i486" ]; then
  # no Qt frontend subpackage -> set it to empty
  
  eval "$(
    declare -f package_qgpgme | \
      sed '
        /cd.*/d
        /make.*/d
        /depends/s/qt5-base//
      '
  )"

  eval "$(
    declare -f package_gpgme | \
      sed '
        /rm.*qgpgme/d
      '
  )"
fi

makedepends_pentium4=("${makedepends_i686[@]}")