* update lz4 to 1:1.10.0-2

This commit is contained in:
Alexander Baldeck 2024-09-22 14:24:47 +02:00
parent 7283772879
commit 69e1bb0e9c
3 changed files with 34 additions and 14 deletions

18
lz4/.SRCINFO Normal file
View File

@ -0,0 +1,18 @@
pkgbase = lz4
pkgdesc = Extremely fast compression algorithm
pkgver = 1.10.0
pkgrel = 2
epoch = 1
url = https://lz4.github.io/lz4/
arch = x86_64
license = GPL-2.0-or-later
checkdepends = diffutils
makedepends = git
makedepends = meson
makedepends = ninja
depends = glibc
provides = liblz4.so
source = git+https://github.com/lz4/lz4.git#tag=v1.10.0
sha256sums = 487f9bc24fdaf589e2f4bb23dd98b1f21a71b643db09251145616587c9468555
pkgname = lz4

4
lz4/.nvchecker.toml Normal file
View File

@ -0,0 +1,4 @@
[lz4]
source = "git"
git = "https://github.com/lz4/lz4.git"
prefix = "v"

View File

@ -3,37 +3,35 @@
pkgname=lz4
epoch=1
pkgver=1.9.4
pkgrel=3
pkgver=1.10.0
pkgrel=2
pkgdesc='Extremely fast compression algorithm'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://lz4.github.io/lz4/'
license=('GPL2')
makedepends=('git' 'cmake' 'ninja')
license=('GPL-2.0-or-later')
makedepends=('git' 'meson' 'ninja')
checkdepends=('diffutils')
depends=('glibc')
provides=('liblz4.so')
source=("git+https://github.com/lz4/lz4.git#tag=v$pkgver")
sha256sums=('SKIP')
sha256sums=('487f9bc24fdaf589e2f4bb23dd98b1f21a71b643db09251145616587c9468555')
build() {
cmake -B build -S "$pkgname"/build/cmake \
-G Ninja \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
cmake --build build
meson setup --prefix=/usr --buildtype=plain lz4/build/meson build
meson configure build -Dcontrib=true -Dexamples=true -Dprograms=true
meson compile -C build
}
check() {
rm -f passwd.lz4
build/lz4 /etc/passwd passwd.lz4
build/lz4 -d passwd.lz4 passwd
build/meson/programs/lz4 /etc/passwd passwd.lz4
build/meson/programs/lz4 -d passwd.lz4 passwd
diff -q /etc/passwd passwd
rm passwd
}
package() {
DESTDIR="$pkgdir" cmake --install build
meson install -C build --destdir "$pkgdir"
}
# vim:set ts=2 sw=2 et: