mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
libraries/libvirt-glib: Updated for version 4.0.0.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
82cf6dd0a3
commit
85e25c4066
3 changed files with 31 additions and 20 deletions
12
libraries/libvirt-glib/libvirt-glib-4.0.0-cast-align.patch
Normal file
12
libraries/libvirt-glib/libvirt-glib-4.0.0-cast-align.patch
Normal file
|
@ -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',
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue