libarchive: use cmake

This commit is contained in:
Tim Biermann 2022-04-02 15:19:52 +02:00
parent 65b82c6a35
commit c90bc99030
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 17 additions and 23 deletions

View File

@ -8,10 +8,8 @@ drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/archive_entry.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libarchive.a
-rwxr-xr-x root/root usr/lib/libarchive.la
lrwxrwxrwx root/root usr/lib/libarchive.so -> libarchive.so.13.6.0
lrwxrwxrwx root/root usr/lib/libarchive.so.13 -> libarchive.so.13.6.0
-rwxr-xr-x root/root usr/lib/libarchive.so.13.6.0
lrwxrwxrwx root/root usr/lib/libarchive.so -> libarchive.so.19
-rwxr-xr-x root/root usr/lib/libarchive.so.19
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/libarchive.pc
drwxr-xr-x root/root usr/share/

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/core.pub
RWRJc1FUaeVeqjOSGfoJBbxVdJ6lNK9ViXR/S2F1WFj5Md++pZWmf83ZPv3riVo8foB1/iiE64+l2rbWFW1atMvlCA3pPsJ09QM=
SHA256 (Pkgfile) = f2141a6dcb4a4d973bf34a7ced7cc54619a803f3ab78292648bc39d55ccaa2cc
SHA256 (.footprint) = 2ee5c43c0626218a4e8b55f74b20013225836b03546a45ad1a7ac674e7437d41
RWRJc1FUaeVeqvfERIQh52Y9n4sWAWHTvU8RGu372+ggk8N7XYhExDCOdS8nl6vl0FkTT+PcILJCP4XKNdBusb+aBOBY57xT4gE=
SHA256 (Pkgfile) = 941c52d47ca00a7cef5fe02fba0e388505fd989f1ce3ee0f9818352a2fb481b6
SHA256 (.footprint) = 1025bef03ed5fea3c3428ebd022d5e2ae4974a2ebf6b711d564f4233160431ee
SHA256 (libarchive-3.6.0.tar.xz) = df283917799cb88659a5b33c0a598f04352d61936abcd8a48fe7b64e74950de7

View File

@ -5,25 +5,21 @@
name=libarchive
version=3.6.0
release=1
release=2
source=(https://github.com/libarchive/libarchive/releases/download/v$version/$name-$version.tar.xz)
build() {
cd $name-$version
# We're passing --without-xml2, --without-expat, --without-nettle
# and --without-libb2
# We're passing ENABLE_LIBB2, ENABLE_LIBXML2 and ENABLE_NETTLE = OFF
# to avoid linking to libraries which are only available in opt.
# XML support is only needed for the xar format which we can live without.
./configure \
--prefix=/usr \
--without-xml2 \
--without-expat \
--without-nettle \
--without-openssl \
--without-libb2
make
make DESTDIR=$PKG install
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
}