summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Juan M. Lasca2022-09-12 19:19:01 +0200
committer bedlam2022-09-12 19:19:01 +0200
commit114f56e63dc1c644890d9843fabcbf79a237ddc3 (patch)
tree9cec89ba60f99fdaa840a201fcfffa82439fba69
parent3a44b8007f831e1b9d6aad4db47a3b7189218cb6 (diff)
downloadslackbuilds-114f56e63dc1c644890d9843fabcbf79a237ddc3.tar.gz
network/gnome-bluetooth: Updated for version 3.34.5. New maintainer.
Signed-off-by: bedlam <dave@slackbuilds.org>
-rw-r--r--network/gnome-bluetooth/gnome-bluetooth.SlackBuild81
-rw-r--r--network/gnome-bluetooth/gnome-bluetooth.info10
2 files changed, 41 insertions, 50 deletions
diff --git a/network/gnome-bluetooth/gnome-bluetooth.SlackBuild b/network/gnome-bluetooth/gnome-bluetooth.SlackBuild
index 285d0459d4..cab85243ad 100644
--- a/network/gnome-bluetooth/gnome-bluetooth.SlackBuild
+++ b/network/gnome-bluetooth/gnome-bluetooth.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for gnome-bluetooth
# Copyright 2016-2018 Chris Farrell <timcowchip@gorge.net>
+# Copyright 2022 Juan M. Lasca <juanmlasca@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gnome-bluetooth
-VERSION=${VERSION:-3.20.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-3.34.5}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +39,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
@@ -51,13 +49,13 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -pipe -march=i586 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -pipe -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -m64 -pipe -fPIC"
+ SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
@@ -66,8 +64,6 @@ fi
set -e
-DOCS="AUTHORS COPYING COPYING.LIB INSTALL NEWS README"
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -81,48 +77,43 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --build=$ARCH-slackware-linux \
- --prefix=/usr \
- --exec-prefix=/usr \
- --bindir=/usr/bin \
- --sbindir=/usr/sbin \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --includedir=/usr/include \
- --mandir=/usr/man \
- --infodir=/usr/info \
- --sysconfdir=/etc \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --disable-static \
- --enable-shared \
- --disable-gtk-doc \
- --disable-schemas-compile \
- --enable-introspection=yes \
- --enable-compile-warnings=no \
- --localstatedir=/var \
- --sharedstatedir=/var/lib \
- --disable-static --enable-shared \
- --disable-gtk-doc \
- --disable-schemas-compile \
- --enable-introspection=yes \
- --enable-compile-warnings=no
-
-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
+mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson .. \
+ --buildtype=release \
+ --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ -Dstrip=true
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
+cd ..
+
+# handle icon size problem: resize it if Imagemagick is installed,
+# delete them otherwise
+if [ -x /usr/bin/convert ]; then
+ /usr/bin/convert \
+ $PKG/usr/share/icons/hicolor/48x48/status/bluetooth-active.png \
+ -resize 24x24 \
+ $PKG/usr/share/icons/hicolor/24x24/status/bluetooth-active.png
+else
+ rm -fr $PKG/usr/share/icons/hicolor/24x24
+fi
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING COPYING.LIB MAINTAINERS README.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-rm -f $PKG/usr/lib*/*.la
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
diff --git a/network/gnome-bluetooth/gnome-bluetooth.info b/network/gnome-bluetooth/gnome-bluetooth.info
index d64f248740..f3381ab043 100644
--- a/network/gnome-bluetooth/gnome-bluetooth.info
+++ b/network/gnome-bluetooth/gnome-bluetooth.info
@@ -1,10 +1,10 @@
PRGNAM="gnome-bluetooth"
-VERSION="3.20.1"
+VERSION="3.34.5"
HOMEPAGE="https://wiki.gnome.org/Projects/GnomeBluetooth"
-DOWNLOAD="http://download.gnome.org/sources/gnome-bluetooth/3.20/gnome-bluetooth-3.20.1.tar.xz"
-MD5SUM="0768931f17eaba8b05eddacf17204f60"
+DOWNLOAD="https://download.gnome.org/sources/gnome-bluetooth/3.34/gnome-bluetooth-3.34.5.tar.xz"
+MD5SUM="d83faa54abaf64bb40b5313bc233e74e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Chris Farrell"
-EMAIL="timcowchip@gorge.net"
+MAINTAINER="Juan M. Lasca"
+EMAIL="juanmlasca@gmail.com"