desktop/quazip/PKGBUILD

39 lines
911 B
Bash
Raw Normal View History

pkgname=quazip
2018-06-26 11:06:52 +08:00
pkgver=0.7.6
2016-04-08 21:16:34 +08:00
pkgrel=1
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/"
license=('LGPL')
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
}
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"
make
}
package() {
2018-06-26 11:06:52 +08:00
cd "${srcdir}"
cd build
make DESTDIR="$pkgdir" install
2015-02-15 22:52:04 +08:00
}