summaryrefslogtreecommitdiff
path: root/libarchive/Pkgfile
blob: c2a17d0665ed44b283ea9f09367e42e51ab7f3ff (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=2
    9 source=(https://github.com/libarchive/libarchive/releases/download/v$version/$name-$version.tar.xz)
   10 
   11 build() {
   12 	cd $name-$version
   13 
   14 	# We're passing --without-xml2, --without-nettle and --without-libb2
   15 	# to avoid linking to libraries which are only available in opt.
   16 
   17 	./configure \
   18 		--prefix=/usr \
   19 		--without-xml2 \
   20 		--without-nettle \
   21 		--without-libb2
   22 
   23 	make
   24 	make DESTDIR=$PKG install
   25 
   26 	# fix pkgconfig file
   27 	sed "/^Requires.private:/s/iconv//" -i $PKG/usr/lib/pkgconfig/libarchive.pc
   28 }

Generated by cgit