# Description: Desktop publishing software # URL: https://www.scribus.net/ # Maintainer: Erich Eckner, crux at eckner dot net # Depends on: boost-libs cairo fontconfig freetype2 harfbuzz-icu hunspell lcms2 libcdr libcups libfreehand libjpeg libmspub libpagemaker libpng libqxp librevenge libtiff libvisio libxml2 libzmf openscenegraph openssl podofo poppler python3 qt5 zlib cmake boost mesa name=scribus version=1.5.7 release=5 source=("https://downloads.sourceforge.net/${name}/${name}-${version}.tar.xz" harfbuzz-3.0.0.patch) build() { cd ${name}-${version} patch -Np1 -i ../harfbuzz-3.0.0.patch cd .. cmake -B build -S ${name}-${version} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_SKIP_RPATH=ON \ -DWANT_HUNSPELL=ON \ -DWITH_BOOST=ON \ -DWITH_PODOFO=ON #\ # FS#59800 #-DWANT_GRAPHICSMAGICK=ON make -C build make -C build DESTDIR="${PKG}" install cd ${pkgname}-${pkgver} install -Dm644 scribus.desktop -t "${PKG}"/usr/share/applications for i in 16x16 32x32 128x128 256x256 512x512 1024x1024 do install -Dm644 resources/iconsets/artwork/icon_${i}.png "${PKG}"/usr/share/icons/hicolor/${i}/apps/scribus.png done # Use system hyphen rm -rf "${PKG}"/usr/share/scribus/dicts/hyph ln -sf /usr/share/hyphen "${PKG}"/usr/share/scribus/dicts/hyph }