Skip to content

Commit

Permalink
network/megatools: Updated for version 1.11.1.
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
  • Loading branch information
Ponce authored and willysr committed Nov 9, 2024
1 parent 84cf44a commit 60b359d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
44 changes: 22 additions & 22 deletions network/megatools/megatools.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=megatools
VERSION=${VERSION:-1.10.3}
VERSION=${VERSION:-1.11.1}
EXTRAVER=${EXTRAVER:-20241028}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
Expand Down Expand Up @@ -69,40 +70,39 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
rm -rf $PRGNAM-${VERSION}.${EXTRAVER}
tar xvf $CWD/$PRGNAM-${VERSION}.${EXTRAVER}.tar.gz
cd $PRGNAM-${VERSION}.${EXTRAVER}
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

#autoreconf -vi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--enable-maintainer-mode \
--enable-warnings \
--enable-docs-build \
--mandir=/usr/man \
--enable-static=no \
--build=$ARCH-slackware-linux

make install DESTDIR=$PKG

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 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/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
HACKING LICENSE NEWS README TODO \
LICENSE NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

Expand Down
6 changes: 3 additions & 3 deletions network/megatools/megatools.info
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PRGNAM="megatools"
VERSION="1.10.3"
VERSION="1.11.1"
HOMEPAGE="https://megatools.megous.com/"
DOWNLOAD="https://megatools.megous.com/builds/megatools-1.10.3.tar.gz"
MD5SUM="e5f85f5f5d4fe844a6090a2816eabcae"
DOWNLOAD="https://megatools.megous.com/builds/megatools-1.11.1.20241028.tar.gz"
MD5SUM="2816afe8b604b19cd7e5eef67d2de074"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
Expand Down

0 comments on commit 60b359d

Please sign in to comment.