2015-11-16 05:09:14 +08:00
|
|
|
pkgname=quazip
|
2018-06-26 11:06:52 +08:00
|
|
|
pkgver=0.7.6
|
2016-04-08 21:16:34 +08:00
|
|
|
pkgrel=1
|
2011-11-29 22:58:27 +08:00
|
|
|
pkgdesc="C++ wrapper for the Gilles Vollant's ZIP/UNZIP C package"
|
2018-06-26 11:06:52 +08:00
|
|
|
url="https://stachenov.github.io/quazip/"
|
2011-11-29 22:58:27 +08:00
|
|
|
license=('LGPL')
|
2015-11-16 05:09:14 +08:00
|
|
|
arch=('x86_64')
|
2017-02-08 00:09:36 +08:00
|
|
|
depends=('qt5-base')
|
|
|
|
makedepends=('cmake')
|
|
|
|
replaces=('quazip-qt4')
|
|
|
|
provides=('quazip-qt4')
|
|
|
|
conflicts=('quazip-qt4')
|
2018-06-26 11:06:52 +08:00
|
|
|
source=($pkgname-$pkgver.tar.gz::https://github.com/stachenov/$pkgname/archive/$pkgver.tar.gz)
|
|
|
|
sha256sums=('4118a830a375a81211956611cc34b1b5b4ddc108c126287b91b40c2493046b70')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
# Fix cmake module install dir
|
|
|
|
sed -e 's|${CMAKE_ROOT}/Modules|${CMAKE_INSTALL_PREFIX}/lib/cmake/QuaZip|' -i $pkgname-$pkgver/CMakeLists.txt
|
|
|
|
}
|
2015-11-12 23:27:39 +08:00
|
|
|
|
2011-11-29 22:58:27 +08:00
|
|
|
build() {
|
2018-06-26 11:06:52 +08:00
|
|
|
cd "${srcdir}"
|
|
|
|
|
|
|
|
install -d build
|
|
|
|
cd build
|
|
|
|
cmake ../$pkgname-$pkgver \
|
2017-02-08 00:09:36 +08:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DBUILD_WITH_QT4:BOOL=OFF \
|
|
|
|
-DCMAKE_CXX_FLAGS="$CFLAGS -fPIC"
|
2015-11-16 05:09:14 +08:00
|
|
|
make
|
2011-11-29 22:58:27 +08:00
|
|
|
}
|
|
|
|
|
2015-11-16 05:09:14 +08:00
|
|
|
package() {
|
2018-06-26 11:06:52 +08:00
|
|
|
cd "${srcdir}"
|
|
|
|
|
|
|
|
cd build
|
2015-11-12 23:27:39 +08:00
|
|
|
make DESTDIR="$pkgdir" install
|
2015-02-15 22:52:04 +08:00
|
|
|
}
|