summaryrefslogtreecommitdiff
path: root/manualPorts/scribus/Pkgfile
blob: 414fec85c93f4112d7e9e51a89f6e9ea3a11c97d (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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
}