core/libarchive/Pkgfile

24 lines
706 B
Plaintext

# Description: Library to create and read several archive formats
# URL: https://www.libarchive.org/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: acl bzip2 lzo xz zlib zstd
name=libarchive
version=3.6.2
release=3
source=(https://github.com/libarchive/libarchive/releases/download/v$version/$name-$version.tar.xz)
build() {
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DHAVE_LZMA_STREAM_ENCODER_MT=1" \
-D ENABLE_TAR_SHARED=ON \
-D ENABLE_LIBB2=OFF \
-D ENABLE_LIBXML2=OFF \
-D ENABLE_NETTLE=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}