initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

89
xarchiver/PKGBUILD Normal file
View File

@@ -0,0 +1,89 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgbase=xarchiver
pkgname=('xarchiver' 'xarchiver-gtk2')
pkgver=0.5.4.17
pkgrel=4
pkgdesc="GTK+ frontend to various command line archivers"
arch=('i686' 'x86_64')
url='https://github.com/ib/xarchiver'
license=('GPL-2' 'LGPL-2' 'LGPL-3')
depends=('gtk2' 'gtk')
makedepends=('docbook-xsl' 'intltool' 'xmlto' 'gettext-tiny')
optdepends=('binutils: deb support'
'bzip2: bzip2 support'
'cpio: RPM support'
'gzip: gzip support'
'lha: LHA support'
'lrzip: lrzip support'
'lz4: LZ4 support'
'lzip: lzip support'
'lzop: LZOP support'
'p7zip: 7z support'
'tar: tar support'
'unzip: ZIP support'
'xdg-utils: recognize more file types to open'
'xz: xz support'
'zip: ZIP support')
source=("https://github.com/ib/xarchiver/archive/${pkgver}/${pkgbase}-${pkgver}.tar.gz"
"xarchiver.appdata.xml"
"libre.patch")
sha512sums=('5b19fd0fb90f99aee0ac2576bc4efce9ef4eef9119fc118815f6d925e3877c0895475fbdf7363d8adfb6371fb7fd73299ea3a7cb3b6d9fff19c89d1d287d3a84'
'e204bb433cd17f10808f89d75749f5a39359da0c47af2d13310d3224cf6237ea842066fb3bec96b0b68eec4f6523a137fe5206de3a5c330ba17cca935b54bea0'
'fba3befc70b8df786346f8c4f90e715d40e2f3afab2040b2483bbbea625e6029dad11c2c41e8daff66d1670e44f283941768826f26cdd4bbca797ad8beba8a4e')
prepare() {
cd $pkgbase-$pkgver
# remove nonfree unRAR support and fix build xgettext check version
patch -p1 -i "$srcdir/libre.patch"
touch {NEWS,AUTHORS}
autoreconf -vi
}
build() {
# GTK+ 3 version
[ -d gtk ] || cp -r $pkgbase-$pkgver gtk
cd gtk
./configure \
--prefix=/usr \
--disable-plugin
make
cd "$srcdir"
# GTK+ 2 version
[ -d gtk2 ] || cp -r $pkgbase-$pkgver gtk2
cd gtk2
./configure \
--prefix=/usr \
--enable-gtk2 \
--disable-plugin
make
}
package_xarchiver() {
depends=(gtk)
cd gtk
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/$pkgname.appdata.xml" -t "$pkgdir/usr/share/metainfo"
cd ../$pkgbase-$pkgver
install -Dm644 COPYING -t $pkgdir/usr/share/licenses/$pkgname
}
package_xarchiver-gtk2() {
pkgdesc+=' (GTK+ 2 version)'
depends=(gtk2)
conflicts=(xarchiver)
cd gtk2
make DESTDIR="$pkgdir" install
cd ../$pkgbase-$pkgver
install -Dm644 COPYING -t $pkgdir/usr/share/licenses/$pkgname
# ignore package by appstream to avoid duplicated ids
echo 'X-AppStream-Ignore=true' >> "$pkgdir/usr/share/applications/xarchiver.desktop"
}

81
xarchiver/libre.patch Normal file
View File

@@ -0,0 +1,81 @@
diff --unified --recursive --text xarchiver-0.5.4.17/configure xarchiver-0.5.4.17/configure
--- xarchiver-0.5.4.17/configure 2021-01-24 20:21:04.000000000 +0100
+++ xarchiver-0.5.4.17/configure 2021-06-15 18:46:26.605339641 +0100
@@ -13123,8 +13123,8 @@
xgversion="`xgettext --version | head -1 | grep -Eo '[0-9.]+$'`"
-if test x"$xgversion" \< x"0.16"; then :
- as_fn_error $? "GNU gettext tools must be at least version 0.16" "$LINENO" 5
+if test x"$xgversion" \< x""; then :
+ as_fn_error $? "GNU gettext tools must be at least version 0" "$LINENO" 5
fi
GETTEXT_PACKAGE=xarchiver
diff --unified --recursive --text xarchiver-0.5.4.17/configure.ac xarchiver-0.5.4.17/configure.ac
--- xarchiver-0.5.4.17/configure.ac 2021-01-24 20:21:04.000000000 +0100
+++ xarchiver-0.5.4.17/configure.ac 2021-06-15 18:43:52.635113814 +0100
@@ -89,7 +89,7 @@
dnl ********************
IT_PROG_INTLTOOL([0.40.0], [no-xml])
xgversion="`xgettext --version | head -1 | grep -Eo '[[0-9.]]+$'`"
-AS_IF([test x"$xgversion" \< x"0.16"], AC_MSG_ERROR([GNU gettext tools must be at least version 0.16]))
+AS_IF([test x"$xgversion" \< x""], AC_MSG_ERROR([GNU gettext tools must be at least version 0]))
GETTEXT_PACKAGE=m4_default([], [AC_PACKAGE_NAME])
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Name of default gettext domain])
diff --unified --recursive --text xarchiver-0.5.4.17/doc/html/ch03s03.html xarchiver-0.5.4.17/doc/html/ch03s03.html
--- xarchiver-0.5.4.17/doc/html/ch03s03.html 2021-01-24 20:21:04.000000000 +0100
+++ xarchiver-0.5.4.17/doc/html/ch03s03.html 2021-06-15 18:49:05.615572859 +0100
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>General</title><link rel="stylesheet" type="text/css" href="xarchiver.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="home" href="index.html" title="Xarchiver 0.5.4" /><link rel="up" href="ch03.html" title="Chapter 3. Usage" /><link rel="prev" href="ch03s02.html" title="Command line options" /><link rel="next" href="ch03s04.html" title="Xarchiver menu" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">General</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03s02.html">Prev</a> </td><th width="60%" align="center">Chapter 3. Usage</th><td width="20%" align="right"> <a accesskey="n" href="ch03s04.html">Next</a></td></tr></table><hr /></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="usage_general"></a>General</h2></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="general_startup"></a>Startup</h3></div></div></div><p>
- At startup, Xarchiver detects the available installed archivers (tar,rar,zip etc) and the script <span class="emphasis"><em>xdg-open</em></span> for handling different file types. Since Xarchiver is a front end (a graphic user interface to the command line executables) it can't create archives whose archiver is not available. For instance if you have the free edition of rar, unrar, Xarchiver can't create rar archives since unrar allows rar archives to be opened, tested and extracted but not to be created.
+ At startup, Xarchiver detects the available installed archivers (tar,rar,zip etc) and the script <span class="emphasis"><em>xdg-open</em></span> for handling different file types. Since Xarchiver is a front end (a graphic user interface to the command line executables) it can't create archives whose archiver is not available. For instance if you have unar, Xarchiver can't create rar archives since unar allows rar archives to be opened, tested and extracted but not to be created.
</p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="how_it_works"></a>How it works</h3></div></div></div><p>
Xarchiver will run in the background the command line executable of the archiver with the archiver's proper switches to perform the selected operation. If something goes wrong Xarchiver reports the full output of the archiver executable in the command line output window. Starting with release 0.5 the files in the archive can be opened within Xarchiver. The script <span class="emphasis"><em>xdg-open</em></span> will detect the file type and run the proper application to handle it. If you don't have such script installed in your system (it's found in the xdg-utils package) Xarchiver will recognize HTML, txt and images files only. The Preferences dialog will notify this to you when you click the Advanced section inside it.
</p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="dnd"></a>Drag and Drop</h3></div></div></div><p>
diff --unified --recursive --text xarchiver-0.5.4.17/doc/xarchiver.docbook xarchiver-0.5.4.17/doc/xarchiver.docbook
--- xarchiver-0.5.4.17/doc/xarchiver.docbook 2021-01-24 20:21:04.000000000 +0100
+++ xarchiver-0.5.4.17/doc/xarchiver.docbook 2021-06-15 18:51:07.425751517 +0100
@@ -305,7 +305,7 @@
<section id="general_startup">
<title>Startup</title>
<para>
- At startup, &app; detects the available installed archivers (tar,rar,zip etc) and the script <emphasis>xdg-open</emphasis> for handling different file types. Since &app; is a front end (a graphic user interface to the command line executables) it can't create archives whose archiver is not available. For instance if you have the free edition of rar, unrar, &app; can't create rar archives since unrar allows rar archives to be opened, tested and extracted but not to be created.
+ At startup, &app; detects the available installed archivers (tar,rar,zip etc) and the script <emphasis>xdg-open</emphasis> for handling different file types. Since &app; is a front end (a graphic user interface to the command line executables) it can't create archives whose archiver is not available. For instance if you have unar, &app; can't create rar archives since unar allows rar archives to be opened, tested and extracted but not to be created.
</para>
</section>
<section id="how_it_works">
diff --unified --recursive --text xarchiver-0.5.4.17/src/main.c xarchiver-0.5.4.17/src/main.c
--- xarchiver-0.5.4.17/src/main.c 2021-01-24 20:21:04.000000000 +0100
+++ xarchiver-0.5.4.17/src/main.c 2021-06-15 19:04:56.716967831 +0100
@@ -629,8 +629,6 @@
if (path)
archiver[type].is_compressor = TRUE;
- else
- path = g_find_program_in_path("unrar");
if (path)
{
diff --unified --recursive --text xarchiver-0.5.4.17/src/rar.c xarchiver-0.5.4.17/src/rar.c
--- xarchiver-0.5.4.17/src/rar.c 2021-01-24 20:21:04.000000000 +0100
+++ xarchiver-0.5.4.17/src/rar.c 2021-06-15 19:21:50.398454588 +0100
@@ -39,9 +39,6 @@
id = strstr(output, "\nRAR ");
- if (!id)
- id = strstr(output, "\nUNRAR ");
-
if (id)
{
version = *(strchr(id, ' ') + 1);
diff --unified --recursive --text xarchiver-0.5.4.17.orig/po/LINGUAS xarchiver-0.5.4.17/po/LINGUAS
--- xarchiver-0.5.4.17/po/LINGUAS 2021-01-24 20:21:04.000000000 +0100
+++ xarchiver-0.5.4.17/po/LINGUAS 2021-06-15 23:19:59.709412000 +0100
@@ -1,2 +1,2 @@
# set of available languages (in alphabetic order)
-ar ast bg ca cs da de dz el en_GB es eu fi fr gl he hr hu id it ja kk ku lt lv ms nb nl pa pl pt_BR pt_PT ro ru si sk sq sr sv te th tr ug uk ur vi zh_CN zh_TW
+ar ast bg ca cs da de dz el en_GB fi gl hu id it lt lv nl pa pl ru

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>com.github.xarchiver</id>
<launchable type="desktop-id">xarchiver.desktop</launchable>
<name>Xarchiver</name>
<summary>A GTK+ only archive manager</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0</project_license>
<description>
<p>Xarchiver is a lightweight desktop independent GTK+ frontend for manipulating xz, 7z, lzma, arj, bzip2, gzip, rar, tar, zip, rpm, lz4, compress, zstd, lzip, lrzip, lzop, lha and deb files. It allows you to create archives and add, extract, and delete files from them. Password protected archives in the arj, 7z, rar, zip and lrzip formats are supported.</p>
</description>
<screenshots>
<screenshot type="default">
<image>http://xarchiver.sourceforge.net/screenshots/main_window.png</image>
</screenshot>
</screenshots>
<url type="bugtracker">https://github.com/ib/xarchiver/issues</url>
<url type="homepage">https://github.com/ib/xarchiver</url>
</component>