diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-22 21:48:38 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-23 20:10:26 +0700 |
commit | 002efb57d228b3bae52b6c399ef6ab6812ab4803 (patch) | |
tree | b26ec56b4d8e956d240a4f13b13bbba326eed36d /games | |
parent | a422e76777c49cce403d0f382e7ce04c80a8d509 (diff) |
games/berusky: Updated for version 1.7.2.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/berusky/berusky.SlackBuild | 33 | ||||
-rw-r--r-- | games/berusky/berusky.desktop | 4 | ||||
-rw-r--r-- | games/berusky/berusky.info | 6 |
3 files changed, 23 insertions, 20 deletions
diff --git a/games/berusky/berusky.SlackBuild b/games/berusky/berusky.SlackBuild index e33e213886ee8..89a7d5ce937f1 100644 --- a/games/berusky/berusky.SlackBuild +++ b/games/berusky/berusky.SlackBuild @@ -22,10 +22,16 @@ # 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: +# - update to v1.7.2 (old version segfaulted on startup, on 15.0). +# - binary in /usr/games. +# - fix icon (png file was named .svg). +# - fix .desktop. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=berusky -VERSION=${VERSION:-1.7} +VERSION=${VERSION:-1.7.2} BUILD=${BUILD:-1} 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 @@ -73,32 +76,32 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz 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 \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# 20220222 bkw: do not use template, it trips over dangling symlinks. +find . -type f -exec chmod 644 {} \+ +find . -type d -exec chmod 755 {} \+ sed -i 's/var\/games/usr\/share/' src/defines.h +autoreconf -if + CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ +CXXFLAGS="$SLKCFLAGS -std=c++11" \ +sh ./configure \ --prefix=/usr \ + --bindir=/usr/games \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG +make install-strip 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 +sed -i 's,/usr/bin,/usr/games,' $PKG/usr/share/berusky/berusky.ini 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 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.svg +install -D -m644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog README TODO $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/games/berusky/berusky.desktop b/games/berusky/berusky.desktop index 217c5e1f1cd5c..fac59bdecab60 100644 --- a/games/berusky/berusky.desktop +++ b/games/berusky/berusky.desktop @@ -2,8 +2,8 @@ Name=Berusky Name[he]=Berusky Comment=Rescue the bugs! -Exec=berusky -Icon=berusky +Exec=/usr/games/berusky +Icon=/usr/share/pixmaps/berusky.png Terminal=false Type=Application Categories=Game;LogicGame; diff --git a/games/berusky/berusky.info b/games/berusky/berusky.info index 51688931ab71f..020c0d7bf8cf0 100644 --- a/games/berusky/berusky.info +++ b/games/berusky/berusky.info @@ -1,8 +1,8 @@ PRGNAM="berusky" -VERSION="1.7" +VERSION="1.7.2" HOMEPAGE="http://anakreon.cz/?q=node/1" -DOWNLOAD="http://downloads.sourceforge.net/project/berusky/berusky/1.7/berusky-1.7.tar.gz" -MD5SUM="e76626588228b8d320772ea5c173579d" +DOWNLOAD="https://github.com/stransky/berusky/archive/v1.7.2/berusky-1.7.2.tar.gz" +MD5SUM="10ac9c9151b989d108eaa8adeb7fb93e" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="berusky-data" |