aboutsummaryrefslogtreecommitdiff
path: root/office/focuswriter-qt6/focuswriter-qt6.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/focuswriter-qt6/focuswriter-qt6.SlackBuild')
-rw-r--r--office/focuswriter-qt6/focuswriter-qt6.SlackBuild19
1 files changed, 12 insertions, 7 deletions
diff --git a/office/focuswriter-qt6/focuswriter-qt6.SlackBuild b/office/focuswriter-qt6/focuswriter-qt6.SlackBuild
index e1dc62521a358..bdd45b72a0fcd 100644
--- a/office/focuswriter-qt6/focuswriter-qt6.SlackBuild
+++ b/office/focuswriter-qt6/focuswriter-qt6.SlackBuild
@@ -63,6 +63,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -83,12 +86,12 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cmake \
- -B build \
- -S . \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DENABLE_STRIP=ON \
- -DCMAKE_BUILD_TYPE=Release
+ -B build \
+ -S . \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DENABLE_STRIP=ON \
+ -DCMAKE_BUILD_TYPE=Release
cmake --build build
DESTDIR=$PKG cmake --install build
@@ -96,9 +99,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING INSTALL README ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+sed -i 's#SingleMainWindow#X-SingleMainWindow#' $PKG/usr/share/applications/focuswriter.desktop
+
mv $PKG/usr/share/man $PKG/usr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done