/
PKGBUILD
38 lines (31 loc) · 1013 Bytes
/
PKGBUILD
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
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=kimageformats6
_pkgname=kimageformats
pkgver=${_kf6ver}
pkgrel=1
pkgdesc='Plugins to allow QImage to support extra file formats.'
arch=('x86_64')
url='https://invent.kde.org/frameworks/kimageformats'
license=('LGPL')
depends=('qt6-base' 'openexr' 'karchive6' 'libavif' 'jpeg-xl' 'libraw' 'libheif')
makedepends=('extra-cmake-modules')
groups=('kf6')
source=("https://download.kde.org/unstable/frameworks/${pkgver}/${_pkgname}-${pkgver}.tar.xz")
md5sums=(`grep ${_pkgname}-$_kf6ver.tar.xz ../kf6.md5 | cut -d" " -f1`)
prepare() {
cd ${_pkgname}-${pkgver}
#patch -p1 -i ${srcdir}/350ce1b990460cb2178f369f22fe80803f5645f3.diff
}
build() {
cmake -B build -S ${_pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DKDE_INSTALL_LIBDIR=lib \
-DBUILD_TESTING=OFF \
-DKIMAGEFORMATS_HEIF=ON
cmake --build build
}
package() {
DESTDIR=${pkgdir} cmake --install build
}