# Packager = Tuxcore <dev@tuxcore.org> 
pkgname=kio-fuse
pkgver=5.1.0
pkgrel=3
arch=(x86_64)
pkgdesc='FUSE interface for KIO'
url='https://kde.org/'
license=(GPL)
depends=(fuse3
         gcc-libs
         glibc
         kcoreaddons
         kio
         qt6-base)
makedepends=(extra-cmake-modules)
source=(https://download.kde.org/stable/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
sha256sums=('7d104581227d5a19b424b33f4168d181556b1015d6df2218e01a88d64449e94b'
            'SKIP')

build() {
  cmake -B build -S $pkgname-$pkgver \
    -DCMAKE_INSTALL_LIBEXECDIR=lib \
    -DQT_MAJOR_VERSION=6 \
    -DBUILD_TESTING=OFF
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
