# 32-bit issues around arrays (fails a test) and a memset in checksumming
# see upstream commits 7dfe53f and 68dd5e9
source+=(slang-2.3.2-integer-array-overflow.patch slang-2.3.2-chksum-memset.patch)
sha1sums+=('c64e55fc9713c61f7069408150f8123959652a54' '0bbe3eb3222d2fa2512b9591d6b1a88a5838d6a8')
eval "$(
  {
    declare -f prepare || \
    printf 'prepare() { cd ${srcdir}/${pkgname}-${pkgver}\n}\n'
  } \
  | sed '
    $ i patch -p1 -i "$srcdir"/slang-2.3.2-integer-array-overflow.patch
    $ i patch -p1 -i "$srcdir"/slang-2.3.2-chksum-memset.patch
  '
)"