aboutsummaryrefslogtreecommitdiffstats
path: root/community/scribus/APKBUILD
blob: 9156e5c6f8c95adbe7fc0e4f942d26d6f5daf073 (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
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=scribus
pkgver=1.5.6.1
pkgrel=0
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"

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 \
		${CMAKE_CROSSOPTS} .
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="eb9562a28eba96a2c89d0e8b3b997508c54ffce99aa104458a4233d606acdee399ccdba4f064bd6cca240774ddfe3e4308b7b9b67106938eb692b12b4e6d24cb  scribus-1.5.6.1.tar.xz
b56359d5e7aa3001cef6a9d6330e5c32a4c7570880b9eeeb79f6ff0ea7a050a5f3964ad0fef653a437e200dfc5d714a8a9c6b30158bbb1abf5d4bc98445f5205  fix-util_debug.cpp.patch"