Guest User

Untitled

a guest
Dec 19th, 2017
962
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. # Maintainer: zoe <[email protected]>
  2. # Contributor : enckse <enckse [at] gmail [dot] com>
  3. pkgname=kxstitch
  4. pkgver=2.0.0
  5. pkgrel=3
  6. pkgdesc="The program that lets you create cross stitch patterns and charts."
  7. arch=('i686' 'x86_64')
  8. depends=('plasma-workspace' 'imagemagick')
  9. makedepends=('cmake' 'automoc4' 'doxygen' 'patch' 'extra-cmake-modules' 'kdoctools')
  10. url="https://userbase.kde.org/KXStitch"
  11. license=('GPL')
  12. source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.xz"
  13. "${pkgname}.install"
  14. "imagemagick.patch::https://github.com/KDE/kxstitch/commit/295773f44bfda1227d85edf065a8de14dc889159.diff")
  15. sha1sums=('3c0665ae6431632955aa00f416ebb8a34c7efcc3' '8e58ce0776eff7ef29394a2f7a089191a4af0b1d' 'e2d3c7ee0d9b62b7e0b1e4bcb327ee90f6edce3a')
  16. install=${pkgname}.install
  17.  
  18. build() {
  19. cd "${srcdir}/kxstitch-${pkgver}"
  20. #sed -i 's/-DMAGICKCORE_HDRI_ENABLE=0/-DMAGICKCORE_HDRI_ENABLE=1/' CMakeLists.txt
  21.  
  22. # Avoid bug in cmake :
  23. #sed -i '5i\cmake_policy(SET CMP0002 OLD)' CMakeLists.txt
  24.  
  25. cp ../imagemagick.patch .
  26. patch -p1 < imagemagick.patch
  27. rm -rf build
  28. mkdir build
  29. cd build
  30. cmake -DCMAKE_INSTALL_PREFIX=`qtpaths --install-prefix` .. \
  31. -DCMAKE_BUILD_TYPE="Release"
  32. make
  33. }
  34.  
  35.  
  36. package() {
  37. cd "${srcdir}/kxstitch-${pkgver}/build"
  38. make DESTDIR="${pkgdir}" install
  39. }
Advertisement
Add Comment
Please, Sign In to add comment