summaryrefslogtreecommitdiff
path: root/lz4/Pkgfile
blob: bd2964e3448302b2b6812a38cb9207aceffa99b5 (plain)
    1 # Description: extremely fast compression algorithm
    2 # URL: https://lz4.github.io/lz4/
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 
    5 name=lz4
    6 version=1.9.3
    7 release=2
    8 source=(https://github.com/$name/$name/archive/v$version/$name-$version.tar.gz
    9   lz4-1.9.3-negative-memmove.patch)
   10 
   11 build() {
   12   cd $name-$version
   13 
   14   # https://github.com/lz4/lz4/commit/8301a21773ef61656225e264f4f06ae14462bca7
   15   # Fix potential memory corruption with negative memmove() size
   16   patch -p1 -i $SRC/lz4-1.9.3-negative-memmove.patch
   17   make -C lib PREFIX=/usr
   18   make -C programs PREFIX=/usr lz4 lz4c
   19   make install PREFIX=/usr DESTDIR=$PKG
   20 }

Generated by cgit