aboutsummaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorbrobr <sborg63@disroot.org>2022-11-22 14:10:44 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-11-24 22:15:53 +0700
commit266dc0d9c1555e9327a59d3576c6fb58bb9c30f2 (patch)
tree347c643b8da6cc4d27830db5572e097c9dd7e914 /office
parent71528d865b3389c2929a383be97253d7e58a6657 (diff)
office/pdfarranger: upgraded to version 1.9.1
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/pdfarranger/pdfarranger.SlackBuild8
-rw-r--r--office/pdfarranger/pdfarranger.info6
-rw-r--r--office/pdfarranger/simplify_icon_name.patch24
3 files changed, 34 insertions, 4 deletions
diff --git a/office/pdfarranger/pdfarranger.SlackBuild b/office/pdfarranger/pdfarranger.SlackBuild
index ff1138a58f84..7a4a5068d3b1 100644
--- a/office/pdfarranger/pdfarranger.SlackBuild
+++ b/office/pdfarranger/pdfarranger.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pdfarranger
-VERSION=${VERSION:-1.8.2}
+VERSION=${VERSION:-1.9.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -71,6 +71,11 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
+
+#simplify icon name from 'com.github.jeromerobert.pdfarranger' to 'pdfarranger'
+patch -p 1 < $CWD/simplify_icon_name.patch
+
+
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
@@ -88,6 +93,7 @@ mv $PKG/usr/share/man $PKG/usr/man
mv $PKG/usr/share/applications/com.github.jeromerobert.pdfarranger.desktop \
$PKG/usr/share/applications/pdfarranger.desktop
+
mv $PKG/usr/share/metainfo/com.github.jeromerobert.pdfarranger.metainfo.xml \
$PKG/usr/share/metainfo/pdfarranger.metainfo.xml
diff --git a/office/pdfarranger/pdfarranger.info b/office/pdfarranger/pdfarranger.info
index 11f03e37a789..4de46e240ff4 100644
--- a/office/pdfarranger/pdfarranger.info
+++ b/office/pdfarranger/pdfarranger.info
@@ -1,8 +1,8 @@
PRGNAM="pdfarranger"
-VERSION="1.8.2"
+VERSION="1.9.1"
HOMEPAGE="https://github.com/pdfarranger/pdfarranger"
-DOWNLOAD="https://github.com/pdfarranger/pdfarranger/archive/refs/tags/1.8.2/pdfarranger-1.8.2.tar.gz"
-MD5SUM="d38a47d5b5c6cfe16c0bbeb03971bb76"
+DOWNLOAD="https://github.com/pdfarranger/pdfarranger/archive/refs/tags/1.9.1/pdfarranger-1.9.1.tar.gz"
+MD5SUM="91f5c1c85da9d603b6ebb6936311d77e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="pikepdf python-distutils-extra python3-dateutil img2pdf"
diff --git a/office/pdfarranger/simplify_icon_name.patch b/office/pdfarranger/simplify_icon_name.patch
new file mode 100644
index 000000000000..87317b92265b
--- /dev/null
+++ b/office/pdfarranger/simplify_icon_name.patch
@@ -0,0 +1,24 @@
+diff -Naur pdfarranger-1.8.2/data/com.github.jeromerobert.pdfarranger.desktop pdfarranger-1.8.2_icon/data/com.github.jeromerobert.pdfarranger.desktop
+--- pdfarranger-1.8.2/data/com.github.jeromerobert.pdfarranger.desktop 2021-12-25 16:53:29.000000000 +0000
++++ pdfarranger-1.8.2_icon/data/com.github.jeromerobert.pdfarranger.desktop 2022-06-28 00:05:36.510916505 +0100
+@@ -17,7 +17,7 @@
+ Comment[ko]=PDF 합치기, 재정렬, 나누기, 회전 및 잘라내기
+ Type=Application
+ Exec=pdfarranger %U
+-Icon=com.github.jeromerobert.pdfarranger
++Icon=pdfarranger
+ MimeType=application/pdf;application/postscript;application/x-ext-pdf;image/x-bmp;image/bmp;image/gif;image/tiff;image/jp2;image/jpeg;image/jpg;image/png;image/x-icon;image/x-portable-pixmap;image/x-gray;image/x-ico;image/x-png;image/vnd.zbrush.pcx;image/x-pcx;
+ Categories=Office;
+ Terminal=false
+diff -Naur pdfarranger-1.8.2/pdfarranger/pdfarranger.py pdfarranger-1.8.2_icon/pdfarranger/pdfarranger.py
+--- pdfarranger-1.8.2/pdfarranger/pdfarranger.py 2021-12-25 16:53:29.000000000 +0000
++++ pdfarranger-1.8.2_icon/pdfarranger/pdfarranger.py 2022-06-28 00:04:05.856916851 +0100
+@@ -54,7 +54,7 @@
+ pass # Gtk already prints a warning
+
+ DOMAIN = 'pdfarranger'
+-ICON_ID = 'com.github.jeromerobert.' + DOMAIN
++ICON_ID = DOMAIN
+ if hasattr(locale, 'bindtextdomain'):
+ # glibc
+ locale.bindtextdomain(DOMAIN, localedir)