# Maintainer: zoe # Contributor : enckse pkgname=kxstitch pkgver=2.1.1 pkgrel=4 pkgdesc="The program that lets you create cross stitch patterns and charts." arch=('i686' 'x86_64') depends=('plasma-workspace' 'imagemagick>=7.0.0') makedepends=('cmake' 'automoc4' 'doxygen' 'patch' 'extra-cmake-modules' 'kdoctools' 'libmagick>=7.0.0') url="https://userbase.kde.org/KXStitch" license=('GPL') source=("https://download.kde.org/stable/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz" "${pkgname}.install" "qt5.11.patch::https://cgit.kde.org/kxstitch.git/patch/?id=ca0f451dceecadc696ba6777084f22ceb5d372f0" ) sha1sums=('6f712bca3173b90149b67640fb1b63d02725c9ef' '8e58ce0776eff7ef29394a2f7a089191a4af0b1d' '1d594501380c0ea1450c27696579fd5c74fe8461' ) install=${pkgname}.install build() { cd "${srcdir}/kxstitch-${pkgver}" cp ../qt5.11.patch . patch -p1 < qt5.11.patch rm -rf build mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=`qtpaths --install-prefix` .. \ -DCMAKE_BUILD_TYPE="Release" make } package() { cd "${srcdir}/kxstitch-${pkgver}/build" make DESTDIR="${pkgdir}" install }