26 lines
783 B
Plaintext
26 lines
783 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.1
|
|
release=1
|
|
source=(https://github.com/libarchive/libarchive/releases/download/v$version/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
# We're passing ENABLE_LIBB2, ENABLE_LIBXML2 and ENABLE_NETTLE = OFF
|
|
# to avoid linking to libraries which are only available in opt.
|
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-D ENABLE_LIBB2=OFF \
|
|
-D ENABLE_LIBXML2=OFF \
|
|
-D ENABLE_NETTLE=OFF \
|
|
-Wno-dev
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
}
|