1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Carlos Aznarán <caznaranl@uni.pe>
5 pkgname=($pkgbase-qt5 $pkgbase-qt6)
8 pkgdesc='Excel file reader/writer library using Qt'
10 url='https://github.com/QtExcel/QXlsx'
12 makedepends=(cmake qt5-base qt6-base)
13 source=(https://github.com/QtExcel/QXlsx/archive/v$pkgver/$pkgbase-$pkgver.tar.gz)
14 sha256sums=('969a947af6a78dad9f2418dfc84e528d212ceb98e6392edf859dbff4f8828a77')
17 cmake -B build5 -S QXlsx-$pkgver/QXlsx \
18 -DCMAKE_INSTALL_PREFIX=/usr \
19 -DQT_VERSION_MAJOR=5 \
20 -DBUILD_SHARED_LIBS=ON
23 cmake -B build6 -S QXlsx-$pkgver/QXlsx \
24 -DCMAKE_INSTALL_PREFIX=/usr \
25 -DQT_VERSION_MAJOR=6 \
26 -DBUILD_SHARED_LIBS=ON
33 DESTDIR="$pkgdir" cmake --install build5
34 install -Dm644 QXlsx-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
40 DESTDIR="$pkgdir" cmake --install build6
41 install -Dm644 QXlsx-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname