aboutsummaryrefslogtreecommitdiff
path: root/ham/libsigmf
diff options
context:
space:
mode:
authorAndrea Sacchetti Picchio <andrea dot sacchettipicchio at gmail dot com>2023-12-28 21:35:37 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-12-29 18:49:43 +0700
commit3882f380b9cf332e3f919e09757451e831d5d247 (patch)
tree50fbf1ca67e1cb3f1f2c39a8f2be8734b4da9423 /ham/libsigmf
parenta69df2c72ab612df3f8d6081b04339c5637d2cc9 (diff)
ham/libsigmf: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ham/libsigmf')
-rw-r--r--ham/libsigmf/libsigmf.SlackBuild20
-rw-r--r--ham/libsigmf/libsigmf.info7
2 files changed, 16 insertions, 11 deletions
diff --git a/ham/libsigmf/libsigmf.SlackBuild b/ham/libsigmf/libsigmf.SlackBuild
index be5bcc1cdcd97..269312c783fc5 100644
--- a/ham/libsigmf/libsigmf.SlackBuild
+++ b/ham/libsigmf/libsigmf.SlackBuild
@@ -28,6 +28,7 @@ PRGNAM=libsigmf
VERSION=${VERSION:-20231212.b9d14e21}
SRCVERSION=${SRCVERSION:-b9d14e2199bfcd958e16c33612ab35295e527087}
VERSION_flatbuffers=${VERSION_flatbuffers:-d8210d5a83faa345046648e520d82b54ea724e35}
+VERSION_json=${VERSION_json:-9cca280a4d0ccf0c08f47a99aa71d1b0e52f8d03}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -50,19 +51,19 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ SLKCFLAGS="-march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-fPIC"
LIBDIRSUFFIX="64"
elif [ "$ARCH" = "aarch64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-fPIC"
LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O2"
+ SLKCFLAGS=""
LIBDIRSUFFIX=""
fi
@@ -77,7 +78,10 @@ unzip $CWD/$PRGNAM-$SRCVERSION.zip
cd $PRGNAM-$SRCVERSION
unzip $CWD/flatbuffers-$VERSION_flatbuffers.zip
rm -rf external/flatbuffers
-mv flatbuffers-${VERSION_flatbuffers} external/flatbuffers
+mv flatbuffers-$VERSION_flatbuffers external/flatbuffers
+unzip $CWD/json-$VERSION_json.zip
+rm -rf external/json
+mv json-$VERSION_json external/json
chown -R root:root .
find -L . \
@@ -94,9 +98,9 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
- -DUSE_SYSTEM_JSON=ON \
+ -DUSE_SYSTEM_JSON=OFF \
-DUSE_SYSTEM_FLATBUFFERS=OFF \
- -DENABLE_EXAMPLES=OFF ..
+ -DENABLE_EXAMPLES=ON ..
make
make install/strip DESTDIR=$PKG
cd ..
diff --git a/ham/libsigmf/libsigmf.info b/ham/libsigmf/libsigmf.info
index af728a47a6278..df9b092712da3 100644
--- a/ham/libsigmf/libsigmf.info
+++ b/ham/libsigmf/libsigmf.info
@@ -2,10 +2,11 @@ PRGNAM="libsigmf"
VERSION="20231212.b9d14e21"
HOMEPAGE="https://github.com/f4exb/libsigmf/"
DOWNLOAD="https://github.com/f4exb/libsigmf/archive/b9d14e21/libsigmf-b9d14e2199bfcd958e16c33612ab35295e527087.zip \
- https://github.com/google/flatbuffers/archive/d8210d5a/flatbuffers-d8210d5a83faa345046648e520d82b54ea724e35.zip"
-MD5SUM="85fcd782696082c48e1654b050d0ba98 9cd198fc0c93c4cd7bf632eb80a39286"
+ https://github.com/google/flatbuffers/archive/d8210d5a/flatbuffers-d8210d5a83faa345046648e520d82b54ea724e35.zip \
+ https://github.com/nlohmann/json/archive/9cca280a/json-9cca280a4d0ccf0c08f47a99aa71d1b0e52f8d03.zip"
+MD5SUM="85fcd782696082c48e1654b050d0ba98 9cd198fc0c93c4cd7bf632eb80a39286 05239fe4145889a732c4d90a180ce4bc"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="nlohmann_json"
+REQUIRES=""
MAINTAINER="Andrea Sacchetti Picchio"
EMAIL="andrea dot sacchettipicchio at gmail dot com"