summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2024-05-16 17:58:17 +0200
committer Matteo Bernardini2024-06-01 15:57:50 +0200
commit527baca71e056281e5a0fd69190088b72941bf14 (patch)
treea0f46800bf1c8b5772b642b958723f19c2efdd17
parenta0d1ab69c9963cb2cc62703291fae30c09d35fea (diff)
downloadslackbuilds-trrntzip.tar.gz
system/trrntzip: Updated for version 1.3.trrntzip
Fixes building against gcc >= 14.x Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--system/trrntzip/slack-desc2
-rw-r--r--system/trrntzip/trrntzip.SlackBuild30
-rw-r--r--system/trrntzip/trrntzip.info8
3 files changed, 19 insertions, 21 deletions
diff --git a/system/trrntzip/slack-desc b/system/trrntzip/slack-desc
index eecb353ad1..ae8002db6d 100644
--- a/system/trrntzip/slack-desc
+++ b/system/trrntzip/slack-desc
@@ -15,5 +15,5 @@ trrntzip:
trrntzip:
trrntzip:
trrntzip:
-trrntzip: https://sourceforge.net/projects/trrntzip/
+trrntzip: https://github.com/0-wiz-0/trrntzip/
trrntzip:
diff --git a/system/trrntzip/trrntzip.SlackBuild b/system/trrntzip/trrntzip.SlackBuild
index 1a8fa43f80..2e59a1dd86 100644
--- a/system/trrntzip/trrntzip.SlackBuild
+++ b/system/trrntzip/trrntzip.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=trrntzip
-VERSION=${VERSION:-v02}
+VERSION=${VERSION:-1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -64,9 +64,9 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM
-tar xvf $CWD/${PRGNAM}_${VERSION}_src.tar.gz
-cd $PRGNAM
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/${PRGNAM}-${VERSION}.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -74,20 +74,18 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# A small patch to fix a permissions issue:
-patch -p1 < $CWD/trrntzip_permission_fix.diff
-
-./autogen.sh
-CFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr
-
-make
-make install-strip DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install/strip DESTDIR=$PKG
+cd ..
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install
-cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING *.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/system/trrntzip/trrntzip.info b/system/trrntzip/trrntzip.info
index 7858763586..e5af1235a9 100644
--- a/system/trrntzip/trrntzip.info
+++ b/system/trrntzip/trrntzip.info
@@ -1,8 +1,8 @@
PRGNAM="trrntzip"
-VERSION="v02"
-HOMEPAGE="https://sourceforge.net/projects/trrntzip/"
-DOWNLOAD="https://downloads.sourceforge.net/trrntzip/trrntzip_v02_src.tar.gz"
-MD5SUM="2635a4042b3cf5611ffdffb4019ec8b7"
+VERSION="1.3"
+HOMEPAGE="https://github.com/0-wiz-0/trrntzip/"
+DOWNLOAD="https://github.com/0-wiz-0/trrntzip/archive/v1.3/trrntzip-1.3.tar.gz"
+MD5SUM="712ebea3daf181bce4c67473bafed513"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""