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

depends=('qt5-base' 'kio5')
makedepends=('cmake' 'extra-cmake-modules' 'qt5-tools')

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

build() {	
	cd ${srcdir}/${pkgname}/
	cmake -B build -DCMAKE_PREFIX_PATH:PATH=/usr/lib/cmake/Qt5
	cmake --build build
}

package() {
	cd ${srcdir}/${pkgname}/
	install -Dm644 ./build/fcstdthumbnailer.so ${pkgdir}/usr/lib/qt/plugins/fcstdthumbnailer.so
	install -Dm644 ./src/fcstdthumbnailer.desktop ${pkgdir}/usr/share/kservices5/fcstdthumbnailer.desktop
}