aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorJeremy Hansen <jebrhansen+github@gmail.com>2024-09-05 17:00:05 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-06 09:44:26 +0700
commit6479e72805689937f9a23ab14a211706e0c2f9fe (patch)
tree1aa2b809fa14de817ac9df38b4d612818a32002c /libraries
parenteb402eacbd174c84ced21ddba58382a3cefc7420 (diff)
libraries/platform: New maintainer
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/platform/platform.SlackBuild22
-rw-r--r--libraries/platform/platform.info4
2 files changed, 14 insertions, 12 deletions
diff --git a/libraries/platform/platform.SlackBuild b/libraries/platform/platform.SlackBuild
index 20bb0ca3b5..68a879344a 100644
--- a/libraries/platform/platform.SlackBuild
+++ b/libraries/platform/platform.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for platform
# Copyright 2015-2017 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
@@ -38,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -84,22 +82,26 @@ patch -p1 < $CWD/platform-2.1.0-install.patch
mkdir -p build
cd build
- cmake -G "Unix Makefiles" \
- -DCMAKE_INSTALL_PREFIX:PATH="/usr" \
+ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib${LIBDIRSUFFIX} \
+ -DBUILD_SHARED_LIBS=1 \
-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 debian/copyright $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ README.md debian/copyright \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/platform/platform.info b/libraries/platform/platform.info
index beb2da3b6c..463fd26cc2 100644
--- a/libraries/platform/platform.info
+++ b/libraries/platform/platform.info
@@ -6,5 +6,5 @@ MD5SUM="8bfdb42cdfdd39f8f3385ad801f73cb0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Larry Hajali"
-EMAIL="larryhaja[at]gmail[dot]com"
+MAINTAINER="Jeremy Hansen"
+EMAIL="jebrhansen+SBo@gmail.com"