summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-03-04 13:52:25 +0100
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:42:06 -0500
commit85e25c406687312a0748e19700850b91bb44b514 (patch)
tree0e80fd193095450d2bb5bc6c8c871dda1048662e
parent82cf6dd0a363f3acee08ec7cf56897bb274eccc4 (diff)
downloadslackbuilds-85e25c406687312a0748e19700850b91bb44b514.tar.gz
libraries/libvirt-glib: Updated for version 4.0.0.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--libraries/libvirt-glib/libvirt-glib-4.0.0-cast-align.patch12
-rw-r--r--libraries/libvirt-glib/libvirt-glib.SlackBuild33
-rw-r--r--libraries/libvirt-glib/libvirt-glib.info6
3 files changed, 31 insertions, 20 deletions
diff --git a/libraries/libvirt-glib/libvirt-glib-4.0.0-cast-align.patch b/libraries/libvirt-glib/libvirt-glib-4.0.0-cast-align.patch
new file mode 100644
index 0000000000..666babaca6
--- /dev/null
+++ b/libraries/libvirt-glib/libvirt-glib-4.0.0-cast-align.patch
@@ -0,0 +1,12 @@
+diff -rup libvirt-glib-4.0.0.orig/meson.build libvirt-glib-4.0.0.new/meson.build
+--- libvirt-glib-4.0.0.orig/meson.build 2021-02-15 12:23:04.609036200 +0000
++++ libvirt-glib-4.0.0.new/meson.build 2021-02-15 14:50:24.838971022 +0000
+@@ -175,8 +175,6 @@ cc_flags += [
+ '-Wbuiltin-declaration-mismatch',
+ '-Wbuiltin-macro-redefined',
+ '-Wcannot-profile',
+- '-Wcast-align',
+- '-Wcast-align=strict',
+ '-Wcast-function-type',
+ '-Wchar-subscripts',
+ '-Wclobbered',
diff --git a/libraries/libvirt-glib/libvirt-glib.SlackBuild b/libraries/libvirt-glib/libvirt-glib.SlackBuild
index 60a9c1969f..487a9681b5 100644
--- a/libraries/libvirt-glib/libvirt-glib.SlackBuild
+++ b/libraries/libvirt-glib/libvirt-glib.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for libvirt-glib
-# Copyright 2012-2017 Robby Workman, Tuscaloosa, Alabama, USA
+# Copyright 2012-2021 Robby Workman, Tuscaloosa, Alabama, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libvirt-glib
-VERSION=${VERSION:-1.0.0}
+VERSION=${VERSION:-4.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -57,7 +57,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -66,27 +66,26 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux \
- --disable-static
+patch -p1 < $CWD/libvirt-glib-4.0.0-cast-align.patch
-make
-make install DESTDIR=$PKG
+mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson .. \
+ --buildtype=release \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --prefix=/usr
+ ninja
+ DESTDIR=$PKG ninja install
+cd ..
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 -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING ChangeLog INSTALL NEWS README \
+ AUTHORS COPYING HACKING NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/libraries/libvirt-glib/libvirt-glib.info b/libraries/libvirt-glib/libvirt-glib.info
index 90a4b953cc..bdc2967403 100644
--- a/libraries/libvirt-glib/libvirt-glib.info
+++ b/libraries/libvirt-glib/libvirt-glib.info
@@ -1,8 +1,8 @@
PRGNAM="libvirt-glib"
-VERSION="1.0.0"
+VERSION="4.0.0"
HOMEPAGE="http://libvirt.org/"
-DOWNLOAD="https://libvirt.org/sources/glib/libvirt-glib-1.0.0.tar.gz"
-MD5SUM="cb1332e97c175606306fe8966f8243af"
+DOWNLOAD="https://libvirt.org/sources/glib/libvirt-glib-4.0.0.tar.xz"
+MD5SUM="0d0932949cde8a8933f6fb6aaf66dfe0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libvirt vala"