summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-22 18:07:41 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-23 20:10:25 +0700
commit44a3e578a8128e17e45faa2a1577f9e44cf3a790 (patch)
treed009af5602856e47e271df5125f054d025c09d96
parentbbe9a759831c4b4fe97833824845af5cebf6171c (diff)
downloadslackbuilds-44a3e578a8128e17e45faa2a1577f9e44cf3a790.tar.gz
games/freedroid: Fix 15.0 build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/freedroid/freedroid.SlackBuild36
-rw-r--r--games/freedroid/freedroid.desktop4
2 files changed, 18 insertions, 22 deletions
diff --git a/games/freedroid/freedroid.SlackBuild b/games/freedroid/freedroid.SlackBuild
index 36929350d0..48fab00352 100644
--- a/games/freedroid/freedroid.SlackBuild
+++ b/games/freedroid/freedroid.SlackBuild
@@ -22,11 +22,17 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220222 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - fix build on 15.0.
+# - binary in /usr/games.
+# - use a PNG icon, not a windows .ico incorrectly named freedroid.svg.
+# - absolute paths in .desktop file.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=freedroid
VERSION=${VERSION:-1.0.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +44,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -75,14 +78,17 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+
+SLKCFLAGS+=" -fcommon"
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --bindir=/usr/games \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
@@ -90,26 +96,16 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
-
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-find $PKG -name perllocal.pod \
- -o -name ".packlist" \
- -o -name "*.bs" \
- | xargs rm -f
-
-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
+make install-strip DESTDIR=$PKG
+gzip -9 $PKG/usr/man/man*/*
-rm -rf $PKG/usr/share/freedroid/mac-osx/
+rm -rf $PKG/usr/share/$PRGNAM/{$PRGNAM.6,mac-osx}
mkdir -p $PKG/usr/share/applications
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/share/pixmaps/
-install -D -m644 graphics/paraicon.ico $PKG/usr/share/pixmaps/$PRGNAM.svg
+convert graphics/paraicon.ico $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/games/freedroid/freedroid.desktop b/games/freedroid/freedroid.desktop
index 832de119a0..c3fcabce1b 100644
--- a/games/freedroid/freedroid.desktop
+++ b/games/freedroid/freedroid.desktop
@@ -2,8 +2,8 @@
Name=FreedroidClassic
Name[he]=FreedroidClassic
Comment=FreedroidClassic is a clone of the game "Paradroid"
-Exec=freedroid
-Icon=freedroid
+Exec=/usr/games/freedroid
+Icon=/usr/share/pixmaps/freedroid.png
Terminal=false
Type=Application
Categories=Game;ArcadeGame;