2007-04-21 11:58:08 +02:00
|
|
|
# Description: Library to create and read several archive formats
|
2021-12-13 12:15:06 +01:00
|
|
|
# URL: https://www.libarchive.org/
|
2021-08-23 11:54:12 +02:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2023-09-12 23:03:33 +02:00
|
|
|
# Depends on: acl bzip2 lzo zstd
|
2007-04-21 11:58:08 +02:00
|
|
|
|
|
|
|
name=libarchive
|
2024-04-26 17:18:45 +02:00
|
|
|
version=3.7.4
|
2024-04-08 15:16:40 +02:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/libarchive/libarchive/releases/download/v$version/$name-$version.tar.xz)
|
2007-04-21 11:58:08 +02:00
|
|
|
|
|
|
|
build() {
|
2023-12-24 12:43:51 +01:00
|
|
|
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_TAR_SHARED=ON \
|
|
|
|
-D ENABLE_ICONV=OFF \
|
|
|
|
-D ENABLE_LIBB2=OFF \
|
|
|
|
-D ENABLE_LIBXML2=OFF \
|
|
|
|
-D ENABLE_NETTLE=OFF \
|
|
|
|
-D ENABLE_TEST=OFF \
|
|
|
|
-D BUILD_TESTING=OFF \
|
|
|
|
-Wno-dev
|
2023-11-01 19:56:01 +01:00
|
|
|
|
2023-12-24 12:43:51 +01:00
|
|
|
cmake --build build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2007-04-21 11:58:08 +02:00
|
|
|
}
|