summaryrefslogtreecommitdiff
path: root/libarchive/Pkgfile
blob: b0379467e253a9a14910920b11f34167e3bcc496 (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=1
    9 source=(https://github.com/libarchive/libarchive/releases/download/v$version/$name-$version.tar.xz)
   10 
   11 build() {
   12 	# We're passing ENABLE_LIBB2, ENABLE_LIBXML2 and ENABLE_NETTLE = OFF
   13 	# to avoid linking to libraries which are only available in opt.
   14 
   15 	cmake -S $name-$version -B build -G Ninja \
   16 		-D CMAKE_INSTALL_PREFIX=/usr \
   17 		-D CMAKE_BUILD_TYPE=Release \
   18 		-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   19 		-D ENABLE_LIBB2=OFF \
   20 		-D ENABLE_LIBXML2=OFF \
   21 		-D ENABLE_NETTLE=OFF \
   22 		-Wno-dev
   23 	cmake --build build
   24 	DESTDIR=$PKG cmake --install build
   25 }

Generated by cgit