aboutsummaryrefslogtreecommitdiff
path: root/system/osinfo-db-tools
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2020-08-25 18:06:38 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-08-29 10:07:56 +0700
commitfe5d0ea1f828d4f5c0c8e9d104131f6cff6bb39a (patch)
tree41403e8ca8f2e255244f8591b68cc8ffe095e007 /system/osinfo-db-tools
parent053614a1636ef1705fd942159b6da7bc9d7b93a6 (diff)
system/osinfo-db-tools: 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>
Diffstat (limited to 'system/osinfo-db-tools')
-rw-r--r--system/osinfo-db-tools/osinfo-db-tools.SlackBuild34
-rw-r--r--system/osinfo-db-tools/osinfo-db-tools.info8
2 files changed, 22 insertions, 20 deletions
diff --git a/system/osinfo-db-tools/osinfo-db-tools.SlackBuild b/system/osinfo-db-tools/osinfo-db-tools.SlackBuild
index 9fb7bbf9d146c..e929584590ca6 100644
--- a/system/osinfo-db-tools/osinfo-db-tools.SlackBuild
+++ b/system/osinfo-db-tools/osinfo-db-tools.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for osinfo-db-tools
-# Copyright 2016-2019 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
+# Copyright 2016-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=osinfo-db-tools
-VERSION=${VERSION:-1.6.0}
+VERSION=${VERSION:-1.8.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,7 +54,7 @@ else
LIBDIRSUFFIX=""
fi
-DOCS="AUTHORS ChangeLog COPYING NEWS README"
+DOCS="CONTRIBUTING.md COPYING NEWS README"
set -e
@@ -71,19 +71,21 @@ 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 \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --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
+ 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/system/osinfo-db-tools/osinfo-db-tools.info b/system/osinfo-db-tools/osinfo-db-tools.info
index 906b8fceca555..ca3b2013a988e 100644
--- a/system/osinfo-db-tools/osinfo-db-tools.info
+++ b/system/osinfo-db-tools/osinfo-db-tools.info
@@ -1,10 +1,10 @@
PRGNAM="osinfo-db-tools"
-VERSION="1.6.0"
+VERSION="1.8.0"
HOMEPAGE="http://libosinfo.org"
-DOWNLOAD="https://releases.pagure.org/libosinfo/osinfo-db-tools-1.6.0.tar.gz"
-MD5SUM="edfb599f960161d348c67f3261627136"
+DOWNLOAD="https://releases.pagure.org/libosinfo/osinfo-db-tools-1.8.0.tar.xz"
+MD5SUM="4a9c1cd3871e1809b44bdb8511cfe2d4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="json-glib"
+REQUIRES="json-glib meson"
MAINTAINER="Matteo Bernardini"
EMAIL="ponce@slackbuilds.org"