aboutsummaryrefslogtreecommitdiffstats
path: root/community/scribus/APKBUILD
blob: ad2f87aa16e7eefe24a5baf7c044932ba1d030bb (plain) (blame)
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
48
49
50
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=scribus
pkgver=1.5.7
pkgrel=7
pkgdesc="libre desktop publishing"
url="https://www.scribus.net/"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no test
makedepends="cmake boost-dev cairo-dev cups-dev harfbuzz-dev hunspell-dev
	lcms2-dev libcdr-dev libfreehand-dev libmspub-dev libpagemaker-dev
	libqxp-dev libvisio-dev libzmf-dev mesa-dev poppler-dev qt5-qttools
	qt5-qttools-dev qt5-qtbase-dev python3-dev
	libexecinfo-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/scribus/scribus-$pkgver.tar.xz
	fix-util_debug.cpp.patch
	fix-harfbuzz-3.patch
	"

langdir="/usr/share/scribus/translations"
build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		-DWANT_DISTROBUILD=True \
		${CMAKE_CROSSOPTS} .
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="
0c8cd42b9d3d26e24d4e0f6638b6c72bab2c2c3aa7e7195efb222391a0c0e671633e32afb08ec35b6ab5123793983de5d413aa7607b51adac3725dc8a83bfb01  scribus-1.5.7.tar.xz
b56359d5e7aa3001cef6a9d6330e5c32a4c7570880b9eeeb79f6ff0ea7a050a5f3964ad0fef653a437e200dfc5d714a8a9c6b30158bbb1abf5d4bc98445f5205  fix-util_debug.cpp.patch
92e49bc5c0a529507636d12c61cccc1156a07b0de08d37a2edae81ff2709e2d16fa70c13bf41988444a1be4438a7a1d56c835dc7a052d2f40a491a23f48041eb  fix-harfbuzz-3.patch
"