From c03068e7895b4787b6c42843931b56dba9420785 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Tue, 24 Jan 2023 02:37:12 +0000 Subject: [PATCH] added extra/quazip --- extra/quazip/PKGBUILD | 46 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 extra/quazip/PKGBUILD diff --git a/extra/quazip/PKGBUILD b/extra/quazip/PKGBUILD new file mode 100644 index 000000000..c3c45585a --- /dev/null +++ b/extra/quazip/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Antonio Rojas +# Maintainer: Jaroslav Lichtblau +# Contributor: Felix Yan +# Contributor: Andrea Scarpino +# Contributor: trya + +# ALARM: Kevin Mihelich +# - explicitly set QT 5 version, doesn't auto-detect correctly + +pkgbase=quazip +pkgname=(quazip-qt5 quazip-qt6) +pkgver=1.4 +pkgrel=1.1 +pkgdesc='C++ wrapper for the ZIP/UNZIP C package' +url='https://stachenov.github.io/quazip/' +license=(LGPL) +arch=(x86_64) +makedepends=(cmake qt5-base qt6-5compat) +source=(https://github.com/stachenov/$pkgbase/archive/v$pkgver/$pkgbase-$pkgver.tar.gz) +sha256sums=('79633fd3a18e2d11a7d5c40c4c79c1786ba0c74b59ad752e8429746fe1781dd6') + +build() { + cmake -B build5 -S $pkgbase-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DQUAZIP_QT_MAJOR_VERSION=5 + cmake --build build5 + + cmake -B build6 -S $pkgbase-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DQUAZIP_QT_MAJOR_VERSION=6 + cmake --build build6 +} + +package_quazip-qt5() { + depends=(qt5-base) + provides=(quazip) + replaces=(quazip) + + DESTDIR="$pkgdir" cmake --install build5 +} + +package_quazip-qt6() { + depends=(qt6-5compat) + + DESTDIR="$pkgdir" cmake --install build6 +}