Compare commits

...

No commits in common. "master" and "zstd-cmake" have entirely different histories.

2 changed files with 28 additions and 26 deletions

View File

@ -1,6 +1,6 @@
pkgbase = zstd-static
pkgdesc = Zstandard - Fast real-time compression algorithm (with static lib)
pkgver = 1.5.6
pkgbase = zstd-cmake
pkgdesc = Zstandard - Fast real-time compression algorithm (with cmake files)
pkgver = 1.5.2
pkgrel = 1
url = https://www.zstd.net/
arch = x86_64
@ -11,11 +11,14 @@ pkgbase = zstd-static
depends = zlib
depends = xz
depends = lz4
provides = zstd=1.5.6
provides = zstd=1.5.2
provides = zstd-static=1.5.2
provides = libzstd.so=1-64
conflicts = zstd
conflicts = zstd-static
conflicts = zstd-git
options = staticlibs
source = https://github.com/facebook/zstd/releases/download/v1.5.6/zstd-1.5.6.tar.gz
sha256sums = 8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1
source = https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz
sha256sums = 7c42d56fac126929a6a85dbc73ff1db2411d04f104fae9bdea51305663a83fd0
pkgname = zstd-static
pkgname = zstd-cmake

View File

@ -1,10 +1,10 @@
# Maintainer: ObserverOfTime <chronobserver@disroot.org>
# Based on zstd
pkgname=zstd-static
pkgver=1.5.6
pkgname=zstd-cmake
pkgver=1.5.2
pkgrel=1
pkgdesc='Zstandard - Fast real-time compression algorithm (with static lib)'
pkgdesc='Zstandard - Fast real-time compression algorithm (with cmake files)'
arch=(x86_64)
url='https://www.zstd.net/'
license=('BSD' 'GPL2')
@ -12,31 +12,30 @@ options=('staticlibs')
depends=('zlib' 'xz' 'lz4')
makedepends=('cmake')
checkdepends=('gtest')
conflicts=('zstd')
provides=("zstd=${pkgver}" "libzstd.so=1-64")
provides=("zstd=${pkgver}" "zstd-static=${pkgver}" "libzstd.so=1-64")
conflicts=('zstd' 'zstd-static' 'zstd-git')
source=("https://github.com/facebook/zstd/releases/download/v${pkgver}/zstd-${pkgver}.tar.gz")
sha256sums=('8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1')
sha256sums=('7c42d56fac126929a6a85dbc73ff1db2411d04f104fae9bdea51305663a83fd0')
build() {
export CFLAGS+=' -ffat-lto-objects'
export CXXFLAGS+=' -ffat-lto-objects'
cmake -B builddir \
cd zstd-${pkgver}
cmake -B ../builddir \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DZSTD_BUILD_CONTRIB=ON \
-DZSTD_BUILD_TESTS=ON \
zstd-${pkgver}/build/cmake
cmake --build builddir
-DCMAKE_INSTALL_LIBDIR=lib build/cmake
cmake --build ../builddir
make -C contrib/pzstd
}
check() {
ctest -VV --test-dir builddir
cd zstd-${pkgver}
make check
make -C contrib/pzstd test
}
package() {
DESTDIR="${pkgdir}" cmake --install builddir
install -Dm644 zstd-${pkgver}/LICENSE \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd zstd-${pkgver}
install -Dm755 contrib/pzstd/pzstd "${pkgdir}/usr/bin/pzstd"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
DESTDIR="${pkgdir}" cmake --install ../builddir
}