summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c0828de2202cad5ab774ecf20aef71a71eb24500 (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
44
45
46
47
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Benoit Landrieu (ben@gresille.org)
# Co-Maintainer: Clemmitt Sigler (cmsigler.online@gmail.com)

pkgname=scribus-stable
pkgver=1.4.8
pkgbase=scribus-stable
pkgrel=2
pkgdesc="Desktop publishing program - old stable version"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL')
url="http://www.scribus.net"
depends=('hunspell' 'podofo' 'libcups' 'python' 'python2' 'cairo' 'desktop-file-utils'
     'qt4' 'hyphen')
makedepends=('cmake')
optdepends=('lib2geom: for mesh distortion')
conflicts=('scribus')
provides=('scribus')
source=("https://netix.dl.sourceforge.net/project/scribus/scribus/1.4.8/scribus-1.4.8.tar.gz"
        'gtdialogs.cpp_pointer.patch')
sha1sums=('a23f310e65a8ef305775f28e24e3e5166c2a257d'
          '079d88f13260793e803941cfc1f10faf0d65fc6e')
options=('!emptydirs')

prepare() {
  cd "${pkgname%-stable}-$pkgver"
  patch -Np1 -i "${srcdir}/gtdialogs.cpp_pointer.patch"
}

build() {
  cd "${pkgname%-stable}-$pkgver"
  cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
    -DCMAKE_INSTALL_DATAROOTDIR:PATH=/usr/share \
    -DCMAKE_LIBRARY_PATH:PATH=/usr/lib \
    -DCMAKE_SKIP_RPATH=ON \
    -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=FALSE .
  make
}

package() {
  cd "${pkgname%-stable}-$pkgver"
  make DESTDIR="$pkgdir/" install
}