2020-06-28 09:47:20 -04:00
|
|
|
# Description: extremely fast compression algorithm
|
2021-02-25 12:30:09 +00:00
|
|
|
# URL: https://lz4.github.io/lz4/
|
2021-02-17 22:57:05 +00:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2020-06-28 09:47:20 -04:00
|
|
|
|
|
|
|
name=lz4
|
2020-12-21 10:23:47 +00:00
|
|
|
version=1.9.3
|
2021-09-12 13:28:11 +10:00
|
|
|
release=2
|
|
|
|
source=(https://github.com/$name/$name/archive/v$version/$name-$version.tar.gz
|
|
|
|
lz4-1.9.3-negative-memmove.patch)
|
2020-06-28 09:47:20 -04:00
|
|
|
|
|
|
|
build() {
|
2021-02-17 22:57:05 +00:00
|
|
|
cd $name-$version
|
2020-06-28 09:47:20 -04:00
|
|
|
|
2021-09-12 13:28:11 +10:00
|
|
|
# https://github.com/lz4/lz4/commit/8301a21773ef61656225e264f4f06ae14462bca7
|
|
|
|
# Fix potential memory corruption with negative memmove() size
|
|
|
|
patch -p1 -i $SRC/lz4-1.9.3-negative-memmove.patch
|
2021-02-17 22:57:05 +00:00
|
|
|
make -C lib PREFIX=/usr
|
|
|
|
make -C programs PREFIX=/usr lz4 lz4c
|
|
|
|
make install PREFIX=/usr DESTDIR=$PKG
|
2020-06-28 09:47:20 -04:00
|
|
|
}
|