Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

  1. _pkgname=kde-thumbnailer-ooxml
  2. pkgname=${_pkgname}-kf5
  3. pkgver=1.1
  4. pkgrel=1
  5. pkgdesc="Microsoft Office Open XML document thumbnailer for KDE"
  6. url="http://kde-apps.org/content/show.php?content=149048"
  7. arch=('i686' 'x86_64')
  8. license=('GPL' 'LGPL' 'FDL')
  9. groups=('kde' 'kdegraphics')
  10. depends=('kdelibs4support' 'zlib')
  11. makedepends=('cmake' 'extra-cmake-modules' 'kdoctools' 'qt5-tools' 'kdesignerplugin')
  12. source=("https://dl.opendesktop.org/api/files/download/id/1460971619/149048-kde-thumbnailer-ooxml-1.1.tar.bz2"
  13. port-to-qt5.patch)
  14. sha1sums=('445acee9c3f78077a70944cba2253432849d6d8e'
  15. '3ac44a6954ca77aa238af845e846566c9ba761b3')
  16. prepare() {
  17. cd "${srcdir}"/${_pkgname}
  18. rm -rf build
  19. mkdir -p build
  20. patch -Np1 -i $srcdir/port-to-qt5.patch
  21. }
  22. build() {
  23. mkdir build
  24. cd build
  25. cd "${srcdir}"/${_pkgname}
  26. cmake -DCMAKE_BUILD_TYPE=Release \
  27. -DCMAKE_INSTALL_PREFIX=/usr \
  28. -DLIB_INSTALL_DIR=lib \
  29. -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
  30. -DSYSCONF_INSTALL_DIR=/etc \
  31. -DBUILD_TESTING=OFF
  32. make
  33. }
  34. package() {
  35. cd "${srcdir}"/${_pkgname}
  36. make DESTDIR="${pkgdir}" install
  37. }