libraries/serd: Updated for version 0.30.16, 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 2023-06-25 19:47:05 +02:00 committed by Willy Sudiarto Raharjo
parent 50f764eb3d
commit fdd96f52fa
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 23 additions and 21 deletions

View File

@ -3,7 +3,7 @@
# Slackware build script for serd
# Copyright 2012-2016 Heinz Wiesinger, Amsterdam, The Netherlands
# Copyright 2020 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# Copyright 2020-2023 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=serd
VERSION=${VERSION:-0.30.4}
VERSION=${VERSION:-0.30.16}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -71,7 +71,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@ -80,20 +80,22 @@ 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" \
./waf configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--configdir=/etc \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--largefile
./waf
./waf 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 \
-Dstrip=true
"${NINJA:=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
@ -101,7 +103,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING INSTALL NEWS README* \
cp -a AUTHORS COPYING NEWS README* \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View File

@ -1,8 +1,8 @@
PRGNAM="serd"
VERSION="0.30.4"
VERSION="0.30.16"
HOMEPAGE="http://drobilla.net/software/serd/"
DOWNLOAD="http://download.drobilla.net/serd-0.30.4.tar.bz2"
MD5SUM="d91349ad8ca81072d95c65b3346108cc"
DOWNLOAD="http://download.drobilla.net/serd-0.30.16.tar.xz"
MD5SUM="86e5ce5a874cd728a02aebf25b48dcc1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""