summaryrefslogtreecommitdiff
path: root/libarchive/Pkgfile
blob: f9e9622a83f85ac52d6181ab0edc5a5b23b17071 (plain)
    1 # Description: Library to create and read several archive formats
    2 # URL: https://www.libarchive.org/
    3 # Maintainer: CRUX System Team, core-ports at crux dot nu
    4 # Depends on: acl bzip2 lzo xz zlib zstd
    5 
    6 name=libarchive
    7 version=3.6.2
    8 release=3
    9 source=(https://github.com/libarchive/libarchive/releases/download/v$version/$name-$version.tar.xz)
   10 
   11 build() {
   12 	cmake -S $name-$version -B build -G Ninja \
   13 		-D CMAKE_INSTALL_PREFIX=/usr \
   14 		-D CMAKE_BUILD_TYPE=Release \
   15 		-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DHAVE_LZMA_STREAM_ENCODER_MT=1" \
   16 		-D ENABLE_TAR_SHARED=ON \
   17 		-D ENABLE_LIBB2=OFF \
   18 		-D ENABLE_LIBXML2=OFF \
   19 		-D ENABLE_NETTLE=OFF \
   20 		-Wno-dev
   21 	cmake --build build
   22 	DESTDIR=$PKG cmake --install build
   23 }

Generated by cgit