ham/libsigmf: Update script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrea Sacchetti Picchio 2023-12-28 21:35:37 +07:00 committed by Willy Sudiarto Raharjo
parent a69df2c72a
commit 3882f380b9
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 16 additions and 11 deletions

View File

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

View File

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