diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2020-08-25 18:13:35 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-08-29 10:07:57 +0700 |
commit | b431e38848b232b237a3b6f1e2b8824eed91716d (patch) | |
tree | d8d0c49fbfaf0143c923187a51d44da970e21648 | |
parent | 4da00b832b1b6f423cb3c1206f2ecd8af3d3f5a3 (diff) | |
download | slackbuilds-b431e38848b232b237a3b6f1e2b8824eed91716d.tar.gz |
libraries/libosinfo: Updated for version 1.8.0, switch to meson.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | libraries/libosinfo/libosinfo.SlackBuild | 40 | ||||
-rw-r--r-- | libraries/libosinfo/libosinfo.info | 6 |
2 files changed, 22 insertions, 24 deletions
diff --git a/libraries/libosinfo/libosinfo.SlackBuild b/libraries/libosinfo/libosinfo.SlackBuild index fc3de0b18b..ee066ea588 100644 --- a/libraries/libosinfo/libosinfo.SlackBuild +++ b/libraries/libosinfo/libosinfo.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libosinfo -# Copyright 2014-2019 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy +# Copyright 2014-2020 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy # 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=libosinfo -VERSION=${VERSION:-1.6.0} +VERSION=${VERSION:-1.8.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -74,25 +74,23 @@ find -L . \ # add slackware metadata patch -p1 < $CWD/add_slackware_data.patch -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --disable-static \ - --disable-tests \ - --enable-vala \ - --enable-introspection=yes \ - --with-usb-ids-path=/usr/share/hwdata/usb.ids \ - --with-pci-ids-path=/usr/share/hwdata/pci.ids \ - --build=$ARCH-slackware-linux - -make -make install DESTDIR=$PKG +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 \ + -D with-usb-ids-path=/usr/share/hwdata/usb.ids \ + -D with-pci-ids-path=/usr/share/hwdata/pci.ids + 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 diff --git a/libraries/libosinfo/libosinfo.info b/libraries/libosinfo/libosinfo.info index 2ea47982f4..ead4925ad7 100644 --- a/libraries/libosinfo/libosinfo.info +++ b/libraries/libosinfo/libosinfo.info @@ -1,8 +1,8 @@ PRGNAM="libosinfo" -VERSION="1.6.0" +VERSION="1.8.0" HOMEPAGE="http://libosinfo.org" -DOWNLOAD="https://releases.pagure.org/libosinfo/libosinfo-1.6.0.tar.gz" -MD5SUM="f6d92dc26b1b641f59679e5eecb37887" +DOWNLOAD="https://releases.pagure.org/libosinfo/libosinfo-1.8.0.tar.xz" +MD5SUM="e64964aea86e40afae2ad9b5077c7378" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="osinfo-db vala" |