summaryrefslogtreecommitdiff
path: root/extra/slang/PKGBUILD
blob: 5334396d2cbd6c4604afa95455b6bbee78b07c40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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
  '
)"