Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/python-pyparsing/PKGBUILD
blob: e9913b6a9f58943635b6bf405d639527730f9122 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# i486-specific
if [ "${CARCH}" = "i486" ]; then

  makedepends+=('python-pip-bootstrap' 'python2-pip-bootstrap')

  # subversion introduces a crazy amount of build dependencies, take
  # official tarball
  makedepends=(${makedepends[@]//subversion/})
  source=('https://pypi.python.org/packages/3c/ec/a94f8cf7274ea60b5413df054f82a8980523efd712ec55a59e7c3357cf7c/pyparsing-2.2.0.tar.gz')

  eval "$(
    declare -f prepare | \
      sed '
        s/pyparsing_$pkgver/pyparsing-$pkgver/g
        s,pyparsing-$pkgver/src,pyparsing-$pkgver,g
        s,pyparsing-$pkgver-py2/src,pyparsing-$pkgver-py2,g
        /sed/d
      '
  )"

  eval "$(
    declare -f build | \
      sed '
        s/pyparsing_$pkgver/pyparsing-$pkgver/g
        s,pyparsing-$pkgver/src,pyparsing-$pkgver,g
        s,pyparsing-$pkgver-py2/src,pyparsing-$pkgver-py2,g
      '
  )"

  eval "$(
    declare -f package_python-pyparsing | \
      sed '
        s/pyparsing_$pkgver/pyparsing-$pkgver/g
        s,pyparsing-$pkgver/src,pyparsing-$pkgver,g
      '
  )"

  eval "$(
    declare -f package_python2-pyparsing | \
      sed '
        s/pyparsing_$pkgver/pyparsing-$pkgver/g
        s,pyparsing-$pkgver-py2/src,pyparsing-$pkgver-py2,g
      '
  )"

  # needed?
  # remove a really weird sed
  #sed -i 's/sed/#sed/g' PKGBUILD
  
  unset check
fi