Skip to content

Commit

Permalink
Switch libarchive to Ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
ongun-kanat committed Aug 16, 2021
1 parent a21ba29 commit f35526a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libarchive/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ url="https://libarchive.org/"
license=('BSD')
groups=('libraries')
depends=('gcc-libs' 'libbz2' 'libiconv' 'libexpat' 'liblzma' 'liblz4' 'libnettle' 'libxml2' 'libzstd' 'zlib')
makedepends=('libbz2-devel' 'libiconv-devel' 'libexpat-devel' 'liblzma-devel' 'liblz4-devel' 'libnettle-devel' \
'libxml2-devel' 'libzstd-devel' 'zlib-devel' 'cmake')
makedepends=('libbz2-devel' 'libiconv-devel' 'libexpat-devel' 'liblzma-devel' 'liblz4-devel' 'libnettle-devel'
'libxml2-devel' 'libzstd-devel' 'zlib-devel' 'cmake' 'ninja')
source=("https://github.com/libarchive/libarchive/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz"
'libarchive-3.3.2-bcrypt-fix.patch'
'libarchive-3.3.1-msys2.patch')
Expand Down Expand Up @@ -38,16 +38,16 @@ build() {
cd "${pkgname}-${pkgver}/build-${CHOST}"

cmake \
-G"Unix Makefiles" \
-G"Ninja" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=$build_type \
-DENABLE_TAR_SHARED=ON \
-DENABLE_CPIO_SHARED=ON \
-DENABLE_CAT_SHARED=ON \
..

make
make DESTDIR="${srcdir}/dest" install
ninja
DESTDIR="${srcdir}/dest" ninja install
}

check() {
Expand Down

0 comments on commit f35526a

Please sign in to comment.