desktop/scribus/PKGBUILD

39 lines
1.2 KiB
Bash
Raw Normal View History

2010-06-12 06:08:30 +08:00
pkgname=scribus
2018-04-29 08:54:44 +08:00
pkgver=1.4.7
pkgrel=1
2010-06-12 06:08:30 +08:00
pkgdesc="A desktop publishing program"
2012-11-12 13:08:28 +08:00
arch=('x86_64')
2018-04-29 08:54:44 +08:00
url="https://www.scribus.net"
2010-06-12 06:08:30 +08:00
license=('GPL')
2016-11-30 23:54:10 +08:00
install=$pkgname.install
2013-09-03 18:24:55 +08:00
depends=('libcups' 'lcms' 'qt' 'ghostscript' 'hyphen' 'podofo'
'libart-lgpl' 'python2' 'libxml2' 'cairo' 'boost-libs'
'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')
2018-04-29 08:54:44 +08:00
source=("https://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz")
sha256sums=('42d335b4a59c26c8ae1e3f601676baa3c42b035b8cde326d195f7a30078e5fec')
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
2016-11-30 23:54:10 +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 \
-DWITH_ASPELL=0 -DWANT_HUNSPELL=1 \
2010-06-12 06:08:30 +08:00
-DWANT_CAIRO=1 \
-DLIB_SUFFIX=""
make
2010-06-12 06:08:30 +08:00
}
package() {
2013-09-03 18:24:55 +08:00
cd build
2016-11-30 23:54:10 +08:00
make DESTDIR=$pkgdir install
2013-09-03 18:24:55 +08:00
2017-01-25 02:42:17 +08:00
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"
2010-06-12 06:08:30 +08:00
}