libraries/tinyxml2: New maintainer

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Jeremy Hansen 2024-09-05 17:13:25 -07:00 committed by Willy Sudiarto Raharjo
parent f12f00cd4d
commit 689a0b3650
2 changed files with 14 additions and 10 deletions

View file

@ -3,6 +3,7 @@
# Slackware build script for tinyxml2
# Copyright 2014-2020 Larry Hajali <larryhaja[at]gmail[dot]com>
# Copyright 2024 Jeremy Hansen <jebrhansen+SBo@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -83,25 +84,28 @@ for i in *.cpp *.h; do
mv ${i}.new $i
done
mkdir build
mkdir -p build
cd build
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_LIBDIR:PATH="lib$LIBDIRSUFFIX" \
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release ..
make
make install/strip DESTDIR=$PKG
cd ..
make VERBOSE=1
make install DESTDIR=$PKG
cd -
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
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 readme.md LICENSE.txt TinyXML2_small.png $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
readme.md LICENSE.txt TinyXML2_small.png \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -6,5 +6,5 @@ MD5SUM="04de2fa311b2fa3b6875886122dc2333"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"
MAINTAINER="Jeremy Hansen"
EMAIL="jebrhansen+SBo@gmail.com"