summaryrefslogtreecommitdiff
path: root/repo/zziplib/zziplib.xibuild
blob: a6887300a13ed7532dc7dbcbc599fe4283b25d0c (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
#!/bin/sh

NAME="zziplib"
DESC="Lightweight library to easily extract data from zip files"

MAKEDEPS=" cmake zlib python bash ninja"

PKG_VER=0.13.72
SOURCE="https://github.com/gdraheim/zziplib/archive/v$PKG_VER.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DBUILD_STATIC_LIBS=False \
		-DBUILD_TESTS=OFF \
		-DMSVC_STATIC_RUNTIME=OFF \
		-DZZIPSDL=OFF \
		-DZZIPTEST=OFF \
		-DZZIPWRAP=OFF \
		.
	ninja -C build
}

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