aboutsummaryrefslogtreecommitdiff
path: root/system/peazip
diff options
context:
space:
mode:
authorMarco Lavorini <sbo.mlavorini@outlook.com>2024-09-25 10:07:46 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-27 23:12:02 +0700
commit0aa6617325e84317a8160d213521a203dbafb911 (patch)
treef1aab05e66d948a581d18743deb7d827ec55d69c /system/peazip
parentaafad3775266870f49752deac53ee2ead4309c4e (diff)
system/peazip: Added (file archiver utility).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/peazip')
-rw-r--r--system/peazip/README6
-rw-r--r--system/peazip/doinst.sh8
-rw-r--r--system/peazip/peazip.SlackBuild106
-rw-r--r--system/peazip/peazip.info10
-rw-r--r--system/peazip/slack-desc19
5 files changed, 149 insertions, 0 deletions
diff --git a/system/peazip/README b/system/peazip/README
new file mode 100644
index 0000000000..a853888319
--- /dev/null
+++ b/system/peazip/README
@@ -0,0 +1,6 @@
+PeaZip free file archiver utility, GTK2 build.
+PeaZip is an Open Source (LGPLv3) cross-platform archive manager
+utility, supporting over 200 archiving and compression formats as 7Z,
+BZip2, Brotli, GZip, PEA, RAR, ZIP, ZPAQ, Zstandard, and many more.
+
+This is a repackaging of PeaZip, GTK2 version.
diff --git a/system/peazip/doinst.sh b/system/peazip/doinst.sh
new file mode 100644
index 0000000000..e4e6459838
--- /dev/null
+++ b/system/peazip/doinst.sh
@@ -0,0 +1,8 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
diff --git a/system/peazip/peazip.SlackBuild b/system/peazip/peazip.SlackBuild
new file mode 100644
index 0000000000..0f7376d5b8
--- /dev/null
+++ b/system/peazip/peazip.SlackBuild
@@ -0,0 +1,106 @@
+#!/bin/bash
+
+# Slackware build script for peazip
+
+# Copyright 2024 Marco Lavorini, Campiglia Marittima Italy
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=peazip
+VERSION=${VERSION:-9.9.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+# Only x86_64 is supported
+if [ "$ARCH" = "x86_64" ]; then
+ true
+else
+ echo Architecture $ARCH is unsupported
+ exit 1
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+
+ar -x $CWD/${PRGNAM}_$VERSION.LINUX.GTK2-1_amd64.deb
+tar xvf data.tar.xz -C $PKG
+cd $PKG
+
+rm -rf $PKG/usr/bin/$PRGNAM
+rm -rf $PKG/usr/lib/$PRGNAM/res/share
+
+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 {} \+
+
+mkdir -p $PKG/usr/share/icons
+cp -rf $PKG/usr/share/$PRGNAM/icons/*.png $PKG/usr/share/icons
+rm -Rf $PKG/usr/share/$PRGNAM/icons
+
+# remove foreign files
+rm -Rf $PKG/usr/share/$PRGNAM/batch/{bat,'macOS service menus',Windows}
+rm -Rf $PKG/usr/share/$PRGNAM/lang-wincontext
+rm -Rf $PKG/usr/share/$PRGNAM/readme
+
+(cd $PKG/usr/bin ; rm -rf peazip)
+(cd $PKG/usr/bin ; ln -sf ../lib/peazip/peazip peazip)
+(cd $PKG/usr/lib/peazip/res/ ; rm -rf share)
+(cd $PKG/usr/lib/peazip/res ; ln -sf ../../../share/peazip share)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ $PKG/usr/share/doc/$PRGNAM/* \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -Rf $PKG/usr/share/doc
+mv $PKG/usr/share/$PRGNAM/copying/ $PKG/usr/doc/$PRGNAM-$VERSION/copying
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/peazip/peazip.info b/system/peazip/peazip.info
new file mode 100644
index 0000000000..2124fef301
--- /dev/null
+++ b/system/peazip/peazip.info
@@ -0,0 +1,10 @@
+PRGNAM="peazip"
+VERSION="9.9.1"
+HOMEPAGE="https://peazip.github.io"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://github.com/peazip/PeaZip/releases/download/9.9.1/peazip_9.9.1.LINUX.GTK2-1_amd64.deb"
+MD5SUM_x86_64="970948cd8bddbca7f87040439fd5ad52"
+REQUIRES=""
+MAINTAINER="Marco Lavorini"
+EMAIL="sbo.mlavorini@outlook.com"
diff --git a/system/peazip/slack-desc b/system/peazip/slack-desc
new file mode 100644
index 0000000000..9951f85cec
--- /dev/null
+++ b/system/peazip/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+peazip: peazip (PeaZip free file archiver utility, GTK2 build)
+peazip:
+peazip: PeaZip is an Open Source (LGPLv3) cross-platform archive manager
+peazip: utility, supporting over 200 archiving and compression formats as 7Z,
+peazip: BZip2, Brotli, GZip, PEA, RAR, ZIP, ZPAQ, Zstandard, and many more.
+peazip:
+peazip:
+peazip:
+peazip:
+peazip: https://peazip.github.io
+peazip: