summaryrefslogtreecommitdiff
path: root/repo/libzip/libzip.xibuild
blob: 9cb5af24a47844426834ff312a78bf18ef5af9d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

NAME="libzip"
DESC="C library for manipulating zip archives"

MAKEDEPS="bzip2 xz zlib zstd cmake openssl perl ninja"

PKG_VER=1.9.2
SOURCE="https://libzip.org/download/libzip-$PKG_VER.tar.xz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DENABLE_BZIP2=ON \
		-DENABLE_LZMA=ON \
		-DENABLE_OPENSSL=ON \
		-DENABLE_ZSTD=ON \
		-DCMAKE_BUILD_TYPE=MinSizeRel
	cmake --build build
}

check() {
	ninja -C build check
}

package() {
	DESTDIR="$PKG_DEST" cmake --install build
}