core/libarchive/Pkgfile

26 lines
783 B
Plaintext
Raw Normal View History

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/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: acl bzip2 lzo xz zlib zstd
2007-04-21 11:58:08 +02:00
name=libarchive
2022-02-18 14:05:41 +01:00
version=3.6.0
2022-04-02 15:19:52 +02:00
release=2
source=(https://github.com/libarchive/libarchive/releases/download/v$version/$name-$version.tar.xz)
2007-04-21 11:58:08 +02:00
build() {
2022-04-02 15:19:52 +02:00
# We're passing ENABLE_LIBB2, ENABLE_LIBXML2 and ENABLE_NETTLE = OFF
# to avoid linking to libraries which are only available in opt.
2007-04-21 11:58:08 +02:00
2022-04-02 15:19:52 +02: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_LIBB2=OFF \
-D ENABLE_LIBXML2=OFF \
-D ENABLE_NETTLE=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
2007-04-21 11:58:08 +02:00
}