Skip to content
Snippets Groups Projects
Verified Commit 89260e4d authored by alice's avatar alice
Browse files

main/zstd: revert the cmake files *again*

who knew circular dependencies were hard?

this has two (with cmake):

cmake -> libarchive -> zstd -> cmake
rsync -> zstd -> cmake -> linux-headers -> rsync

the former isn't too bad to bundle. the latter is probably easily
wrapped with a shell script. but i'll let someone else do it- had it
with this shit

maybe there's a way to generate valid cmake files by hand, without
needing cmake?
parent c8c25b02
1 merge request!39304[3.16] main/expat: security upgrade to 2.4.9
......@@ -4,12 +4,12 @@
# Maintainer: psykose <alice@ayaya.dev>
pkgname=zstd
pkgver=1.5.2
pkgrel=7
pkgrel=8
pkgdesc="Zstandard - Fast real-time compression algorithm"
url="https://www.zstd.net/"
arch="all"
license="BSD-3-Clause GPL-2.0-or-later"
makedepends="cmake grep"
makedepends="grep"
checkdepends="file"
subpackages="
$pkgname-libs
......@@ -32,10 +32,10 @@ build() {
export LDFLAGS="$LDFLAGS -flto"
# just used to generate the .cmake files
cmake -B build-zstd \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-S build/cmake
# cmake -B build-zstd \
# -DCMAKE_INSTALL_PREFIX=/usr \
# -DCMAKE_BUILD_TYPE=Release \
# -S build/cmake
make -C lib prefix=/usr HAVE_PTHREAD=1
make -C programs prefix=/usr HAVE_PTHREAD=1
make -C contrib/pzstd prefix=/usr HAVE_PTHREAD=1
......@@ -50,9 +50,9 @@ package() {
make prefix=/usr DESTDIR="$pkgdir" HAVE_PTHREAD=1 install
install -Dm755 contrib/pzstd/pzstd -t "$pkgdir"/usr/bin/
install -Dm644 -t "$pkgdir"/usr/lib/cmake/zstd/ \
build-zstd/CMakeFiles/Export/*/*.cmake \
build-zstd/zstdConfig*.cmake
# install -Dm644 -t "$pkgdir"/usr/lib/cmake/zstd/ \
# build-zstd/CMakeFiles/Export/*/*.cmake \
# build-zstd/zstdConfig*.cmake
}
sha512sums="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment