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>
This commit is contained in:
Matteo Bernardini 2020-08-25 18:06:38 +02:00 committed by Willy Sudiarto Raharjo
parent 053614a163
commit fe5d0ea1f8
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 22 additions and 20 deletions

View file

@ -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

View file

@ -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"