summaryrefslogtreecommitdiff
path: root/community/python-libnacl/PKGBUILD
blob: 6eda5b5e0c28b0370e186cf1c9aac22c385940bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# see https://bbs.archlinux32.org/viewtopic.php?pid=224
# and https://github.com/saltstack/libnacl/issues/103

eval "$(
  {
    declare -f prepare || \
    printf 'prepare() {\n}\n'
  } \
  | sed '
    $i sed -i '"'"' \
         s/m, mlen,/m, ctypes.byref(mlen),/ \
       '"'"' "libnacl-${pkgver}/libnacl/__init__.py" \
       cp -r libnacl-$pkgver{,-py2}
  '
)"