blob: ddf423332cd35d77d23cf4d08affec198a4a203c (
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
39
40
41
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=qt6-jpegxl-image-plugin
pkgver=0.8.2
pkgrel=1
pkgdesc='Qt6 plug-in to allow Qt6 and KDE based applications to read/write JXL images'
arch=('x86_64')
url='https://github.com/novomesk/qt-jpegxl-image-plugin/'
license=('GPL-3.0-only')
depends=(
'gcc-libs'
'glibc'
'libjxl'
'qt6-base')
makedepends=(
'cmake'
'extra-cmake-modules'
'vulkan-headers')
checkdepends=(
'appstream')
source=("https://github.com/novomesk/qt-jpegxl-image-plugin/archive/v${pkgver}/qt-jpegxl-image-plugin-${pkgver}.tar.gz")
sha256sums=('a72ce87dba07ca5f3b8a6bd45d876b191779839729f156095bbe4d2e46e42961')
build() {
cmake -B build -S "qt-jpegxl-image-plugin-${pkgver}" \
-G 'Unix Makefiles' \
-DCMAKE_BUILD_TYPE:STRING='None' \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-DKDE_INSTALL_QTPLUGINDIR:PATH='lib/qt6/plugins' \
-DQT_MAJOR_VERSION:STRING='6' \
-Wno-dev
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|