contrib/quazip5/Pkgfile

23 lines
661 B
Plaintext
Raw Normal View History

2020-04-29 18:20:38 +02:00
# Description: C++ wrapper for the Gilles Vollant's ZIP/UNZIP C package
# URL: https://stachenov.github.io/quazip/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: qt5
name=quazip5
2023-01-26 18:35:40 +01:00
version=1.4
2021-11-13 14:02:04 +01:00
release=1
2020-04-29 18:20:38 +02:00
source=(https://github.com/stachenov/quazip/archive/v$version/$name-$version.tar.gz)
build() {
2020-11-08 13:16:38 +01:00
cmake -S quazip-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
2020-12-07 01:01:34 +01:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2021-11-13 14:02:04 +01:00
-D QUAZIP_QT_MAJOR_VERSION=5 \
2020-11-08 13:16:38 +01:00
-Wno-dev
2020-04-29 18:20:38 +02:00
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2020-04-29 18:20:38 +02:00
}