PKGBUILD 1.33 KB
Newer Older
Manuel Tortosa's avatar
Manuel Tortosa committed
1
pkgname=scribus
Francesco Marinucci's avatar
Francesco Marinucci committed
2
pkgver=1.4.6
3
pkgrel=5
Manuel Tortosa's avatar
Manuel Tortosa committed
4
pkgdesc="A desktop publishing program"
abveritas's avatar
abveritas committed
5
arch=('x86_64')
Manuel Tortosa's avatar
Manuel Tortosa committed
6 7
url="http://www.scribus.net"
license=('GPL')
8
install=$pkgname.install
9 10
depends=('libcups' 'lcms' 'qt' 'ghostscript' 'hyphen' 'podofo'
         'libart-lgpl' 'python2' 'libxml2' 'cairo' 'boost-libs'
11
         'desktop-file-utils' 'shared-mime-info' 'ruby' 'hunspell')
12
makedepends=('cmake' 'boost')
abveritas's avatar
abveritas committed
13
screenshot=('http://upload.wikimedia.org/wikipedia/commons/f/f4/Scribus-1.3-Linux.png')
14
options=(!libtool)
15
source=("http://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz")
Francesco Marinucci's avatar
Francesco Marinucci committed
16
sha1sums=('f04a2eecfb531af4beb99645f85165be161b00a3')
17 18

prepare() {
19
  cd $pkgname-$pkgver
20 21 22 23

  # fix icon path in .desktop file
  sed 's|Icon=scribus|Icon=/usr/share/scribus/icons/scribus.png|' -i scribus.desktop
}
Manuel Tortosa's avatar
Manuel Tortosa committed
24 25

build() {
26
	mkdir -p build
Manuel Tortosa's avatar
Manuel Tortosa committed
27
	cd build
28
	
29
	cmake ../$pkgname-$pkgver \
Manuel Tortosa's avatar
Manuel Tortosa committed
30 31 32
	   -DCMAKE_INSTALL_PREFIX=/usr \
	   -DCMAKE_BUILD_TYPE=Release \
	   -DCMAKE_SKIP_RPATH=ON \
33
	   -DWITH_ASPELL=0 -DWANT_HUNSPELL=1 \
Manuel Tortosa's avatar
Manuel Tortosa committed
34 35
	   -DWANT_CAIRO=1 \
	   -DLIB_SUFFIX=""
36
	make 
Manuel Tortosa's avatar
Manuel Tortosa committed
37 38 39
}

package() {
40 41
	cd build
	
42
	make DESTDIR=$pkgdir install
43
	
AlmAck's avatar
AlmAck committed
44 45
	install -Dm644 ${srcdir}/${pkgname}-${pkgver}/scribus.desktop "${pkgdir}/usr/share/applications/scribus.desktop"
	install -Dm644 ${srcdir}/${pkgname}-${pkgver}/resources/icons/AppIcon.png "${pkgdir}/usr/share/icons/hicolor/32x32/apps/scribus.png"
Manuel Tortosa's avatar
Manuel Tortosa committed
46
}