2012-11-12 13:08:28 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2010-06-12 06:08:30 +08:00
|
|
|
|
|
|
|
pkgname=scribus
|
2014-05-29 18:33:27 +08:00
|
|
|
pkgver=1.4.4
|
2014-06-09 23:55:03 +08:00
|
|
|
pkgrel=2
|
2010-06-12 06:08:30 +08:00
|
|
|
pkgdesc="A desktop publishing program"
|
2012-11-12 13:08:28 +08:00
|
|
|
arch=('x86_64')
|
2010-06-12 06:08:30 +08:00
|
|
|
url="http://www.scribus.net"
|
|
|
|
license=('GPL')
|
2013-09-03 18:24:55 +08:00
|
|
|
install=${pkgname}.install
|
|
|
|
depends=('libcups' 'lcms' 'qt' 'ghostscript' 'hyphen' 'podofo'
|
|
|
|
'libart-lgpl' 'python2' 'libxml2' 'cairo' 'boost-libs'
|
2013-11-07 04:27:17 +08:00
|
|
|
'desktop-file-utils' 'shared-mime-info' 'ruby' 'hunspell')
|
2013-09-03 18:24:55 +08:00
|
|
|
makedepends=('cmake' 'boost')
|
2012-11-12 13:08:28 +08:00
|
|
|
screenshot=('http://upload.wikimedia.org/wikipedia/commons/f/f4/Scribus-1.3-Linux.png')
|
2013-09-03 18:24:55 +08:00
|
|
|
options=(!libtool)
|
2012-11-12 13:08:28 +08:00
|
|
|
source=("http://sourceforge.net/projects/scribus/files/scribus/${pkgver}/${pkgname}-${pkgver}.tar.xz")
|
2014-05-29 18:33:27 +08:00
|
|
|
sha256sums=('a43b9d55518ccebdb770d3cdac44ebf75c60ad11c284b210f6b0bd8c7a0217ae')
|
2013-09-03 18:24:55 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
|
|
|
|
# fix icon path in .desktop file
|
|
|
|
sed 's|Icon=scribus|Icon=/usr/share/scribus/icons/scribus.png|' -i scribus.desktop
|
|
|
|
}
|
2010-06-12 06:08:30 +08:00
|
|
|
|
|
|
|
build() {
|
2013-09-03 18:24:55 +08:00
|
|
|
mkdir -p build
|
2010-06-12 06:08:30 +08:00
|
|
|
cd build
|
2013-09-03 18:24:55 +08:00
|
|
|
|
2013-01-15 10:18:53 +08:00
|
|
|
cmake ../${pkgname}-${pkgver} \
|
2010-06-12 06:08:30 +08:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
2013-11-07 04:27:17 +08:00
|
|
|
-DWITH_ASPELL=0 -DWANT_HUNSPELL=1 \
|
2010-06-12 06:08:30 +08:00
|
|
|
-DWANT_CAIRO=1 \
|
|
|
|
-DLIB_SUFFIX=""
|
2011-10-26 11:15:31 +08:00
|
|
|
make
|
2010-06-12 06:08:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-09-03 18:24:55 +08:00
|
|
|
cd build
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/scribus.desktop" \
|
|
|
|
"${pkgdir}/usr/share/applications/scribus.desktop"
|
2010-06-12 06:08:30 +08:00
|
|
|
}
|