blob: 04b116d9317aca5590e81d1f354d27617749a4ce (
plain)
1 # Description: C++ wrapper for the Gilles Vollant's ZIP/UNZIP C package
2 # URL: https://stachenov.github.io/quazip/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: qt5
5
6 name=quazip5
7 version=0.9
8 release=1
9 source=(https://github.com/stachenov/quazip/archive/v$version/$name-$version.tar.gz)
10
11 build() {
12 cmake -Hquazip-$version -Bbuild \
13 -DCMAKE_INSTALL_PREFIX=/usr
14 cmake --build build
15 DESTDIR=$PKG cmake --build build --target install
16 cd $SRC/quazip-$version/quazip
17 qmake quazip.pro
18 make pkgconfig/quazip.pc
19 install -Dm644 pkgconfig/quazip.pc $PKG/usr/lib/pkgconfig/quazip5.pc
20 sed -e 's!-lquazip!-lquazip5!' -i $PKG/usr/lib/pkgconfig/quazip5.pc
21 }
|