summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: faaeb2469d7c12ab158e4d0db381366f3f79ba6a (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
pkgname=kde-fcstd-thumbnailer-git
pkgver=2.0.0
pkgrel=3
pkgdesc='FreeCAD Thumbnail Creator.'
arch=('i686' 'x86_64')
url='https://github.com/StefanHamminga/kde-fcstd-thumbnailer'
license=('GPL3')

depends=('qt6-base' 'kio')
makedepends=('cmake' 'extra-cmake-modules' 'qt6-tools' 'kservice')

source=("${pkgname}::git+${url}.git" 'KDE6_compatible_fix.patch')
sha256sums=('SKIP' '2e3020e7efd2776f14a0dce21f5ab2c98ae99911d9b934f3f83ffeb78771533d')

prepare() {
    cd ${srcdir}/${pkgname}/
    patch -Np1 -i ${srcdir}/KDE6_compatible_fix.patch
    desktoptojson -i ./src/fcstdthumbnailer.desktop
}

build() {
	cd ${srcdir}/${pkgname}/
	cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	cd ${srcdir}/${pkgname}/
	DESTDIR=${pkgdir} cmake --install build --config Release
}