aboutsummaryrefslogtreecommitdiffstats
path: root/community/scribus/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/scribus/APKBUILD')
-rw-r--r--community/scribus/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/community/scribus/APKBUILD b/community/scribus/APKBUILD
new file mode 100644
index 0000000000..9156e5c6f8
--- /dev/null
+++ b/community/scribus/APKBUILD
@@ -0,0 +1,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"