blob: acdf2677b41a0a0bd697b69559ffd9e2f59afe7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Dan Johansen <strit@strits.dk>
# Contributor: Marcus Britanicus
pkgbase=libarchive-qt
pkgname=('libarchive-qt' 'libarchive-qt-qt6')
pkgver=2.0.8
pkgrel=2
pkgdesc="A Qt based archiving solution with libarchive backend"
arch=('x86_64' 'aarch64')
url="https://gitlab.com/marcusbritanicus/$pkgbase"
license=('LGPL3')
depends=('libarchive' 'zlib' 'bzip2' 'xz')
makedepends=('meson' 'ninja' 'qt5-base' 'qt6-base')
source=("https://gitlab.com/marcusbritanicus/$pkgbase/-/archive/v$pkgver/$pkgbase-v$pkgver.tar.gz")
md5sums=('99836064f62c6d2cae28c1e3e606541b')
build() {
cd "${pkgbase}-v${pkgver}"
echo "Building QT5 version..."
meson .build --prefix=/usr --buildtype=release
ninja -C .build
echo "Building QT6 version..."
meson .build-qt6 --prefix=/usr -Duse_qt_version=qt6 --buildtype=release
ninja -C .build-qt6
}
package_libarchive-qt() {
depends+=('qt5-base')
cd "${pkgbase}-v${pkgver}"
DESTDIR="${pkgdir}" ninja -C .build install
}
package_libarchive-qt-qt6() {
depends+=('qt6-base')
cd "${pkgbase}-v${pkgver}"
DESTDIR="${pkgdir}" ninja -C .build-qt6 install
}
|