db-move: moved nvidia from [testing] to [extra] (x86_64)
[arch-packages.git] / quazip / trunk / PKGBUILD
blobb151df5dc8b905d674d9f075aa7a83992f98789c
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
3 # Contributor: Felix Yan <felixonmars@archlinux.org>
4 # Contributor: Andrea Scarpino <andrea@archlinux.org>
5 # Contributor: trya <tryagainprod@gmail.com>
7 pkgbase=quazip
8 pkgname=(quazip-qt5 quazip-qt6)
9 pkgver=1.4
10 pkgrel=1
11 pkgdesc='C++ wrapper for the ZIP/UNZIP C package'
12 url='https://stachenov.github.io/quazip/'
13 license=(LGPL)
14 arch=(x86_64)
15 makedepends=(cmake qt5-base qt6-5compat)
16 source=(https://github.com/stachenov/$pkgbase/archive/v$pkgver/$pkgbase-$pkgver.tar.gz)
17 sha256sums=('79633fd3a18e2d11a7d5c40c4c79c1786ba0c74b59ad752e8429746fe1781dd6')
19 build() {
20   cmake -B build5 -S $pkgbase-$pkgver \
21     -DCMAKE_INSTALL_PREFIX=/usr
22   cmake --build build5
24   cmake -B build6 -S $pkgbase-$pkgver \
25     -DCMAKE_INSTALL_PREFIX=/usr \
26     -DQUAZIP_QT_MAJOR_VERSION=6
27   cmake --build build6
30 package_quazip-qt5() {
31   depends=(qt5-base)
32   provides=(quazip)
33   replaces=(quazip)
35   DESTDIR="$pkgdir" cmake --install build5
38 package_quazip-qt6() {
39   depends=(qt6-5compat)
41   DESTDIR="$pkgdir" cmake --install build6