diff options
author | Arn0 <yth@ythogtha.org> | 2024-01-18 16:04:44 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-01-19 09:51:03 +0700 |
commit | 2727dadcddfd5d4fe94d56e42d647be7dcf627c3 (patch) | |
tree | 5973943249ca43116e744d807cb0da32b8e60b89 | |
parent | 1aa4e405cb040ac2f5ee835539a010f1f82e491d (diff) |
office/focuswriter-qt6: Added aarch64 flags
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | office/focuswriter-qt6/focuswriter-qt6.SlackBuild | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/office/focuswriter-qt6/focuswriter-qt6.SlackBuild b/office/focuswriter-qt6/focuswriter-qt6.SlackBuild index e1dc62521a35..bdd45b72a0fc 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 |