diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-26 21:05:55 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-26 21:05:55 -0300 |
commit | e96423b261d094f18bd81b1941ba6b07ec1fa4c5 (patch) | |
tree | 2f580cded271d1b92656ecaa4a98f5e56dc41b98 /libre/engrampa-parabola | |
parent | 3e22240d69b8415840612e64e56f3a4e7ada7ae9 (diff) | |
download | abslibre-e96423b261d094f18bd81b1941ba6b07ec1fa4c5.tar.gz abslibre-e96423b261d094f18bd81b1941ba6b07ec1fa4c5.tar.bz2 abslibre-e96423b261d094f18bd81b1941ba6b07ec1fa4c5.zip |
add parabola suffix on some packages
Diffstat (limited to 'libre/engrampa-parabola')
-rw-r--r-- | libre/engrampa-parabola/PKGBUILD | 49 | ||||
-rw-r--r-- | libre/engrampa-parabola/engrampa.install | 13 | ||||
-rw-r--r-- | libre/engrampa-parabola/fr-rpm-bsdtar.patch | 60 |
3 files changed, 122 insertions, 0 deletions
diff --git a/libre/engrampa-parabola/PKGBUILD b/libre/engrampa-parabola/PKGBUILD new file mode 100644 index 000000000..c94f519aa --- /dev/null +++ b/libre/engrampa-parabola/PKGBUILD @@ -0,0 +1,49 @@ +# $Id: PKGBUILD 107641 2014-03-18 11:10:40Z flexiondotorg $ +# Maintainer (Arch): Martin Wimpress <code@flexion.org> +# Maintainer: André Silva <emulatorman@parabola.nu> + +_pkgname=engrampa +pkgname=engrampa-parabola +pkgver=1.8.0 +pkgrel=1 +pkgdesc="Archive manipulator for MATE, with unar recommendation included and nonfree unace recommendation removed" +url="http://mate-desktop.org" +arch=('i686' 'x86_64' 'mips64el') +license=('GPL') +depends=('bzip2' 'caja' 'desktop-file-utils' 'gtk2' 'gzip' 'libarchive' 'tar') +makedepends=('mate-common' 'perl-xml-parser' 'yelp-tools' 'json-glib') # json-glib is necessary to enable unar support on the package +optdepends=('unar: for RAR uncompression' + 'zip: for ZIP archives' 'unzip: for ZIP archives' + 'p7zip: 7zip compression utility' 'arj: for ARJ archives' + 'yelp: for reading MATE help documents') +replaces=('mate-file-archiver' "${_pkgname}" "${_pkgname}-libre") +provides=('mate-file-archiver' "${_pkgname}=$pkgver") +conflicts=('mate-file-archiver' "${_pkgname}" "${_pkgname}-libre") +groups=('mate-extra') +source=("http://pub.mate-desktop.org/releases/1.8/${_pkgname}-${pkgver}.tar.xz" + fr-rpm-bsdtar.patch) +sha1sums=('511019cee95568a4951e9da12d8a7282c3f6af65' + '219b05a979bf6f249aaae27964f02345fd81168d') +install=${_pkgname}.install + +prepare() { + cd "${srcdir}/${_pkgname}-${pkgver}" + # This patch 'depends' on libarchive + patch -Np1 -i "${srcdir}/fr-rpm-bsdtar.patch" +} + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/${_pkgname} \ + --with-gtk=2.0 \ + --disable-static \ + --disable-packagekit + make +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} diff --git a/libre/engrampa-parabola/engrampa.install b/libre/engrampa-parabola/engrampa.install new file mode 100644 index 000000000..bf6781f93 --- /dev/null +++ b/libre/engrampa-parabola/engrampa.install @@ -0,0 +1,13 @@ +post_install() { + glib-compile-schemas /usr/share/glib-2.0/schemas/ + gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/libre/engrampa-parabola/fr-rpm-bsdtar.patch b/libre/engrampa-parabola/fr-rpm-bsdtar.patch new file mode 100644 index 000000000..93a783176 --- /dev/null +++ b/libre/engrampa-parabola/fr-rpm-bsdtar.patch @@ -0,0 +1,60 @@ +This makes Engrampa use bsdtar to extract .RPM packages instead of using cpio. +It is useful on systems that do not have cpio or RPM/YUM +This patch was created for Arch Linux, however should work on any system that has bsdtar capable of handling cpio archives. + +------------------+ + rpm2cpio.c | 2 +- + fr-command-rpm.c | 8 ++++---- + 2 files changed, 5 insertions(+), 5 deletions(-) + +Index: src/commands/rpm2cpio.c +================================ +--- mate-file-archiver-1.6.0/src/commands/rpm2cpio.c 2013-03-31 ++++ mate-file-archiver-1.6.0/src/commands/rpm2cpio.c 2013-07-26 +@@ -128,7 +128,7 @@ + archive_command = "bzip2 -dc"; + fclose (stream); + +- command = g_strdup_printf ("sh -c \"dd if=%s ibs=%u skip=1 2>/dev/null | %s | cpio %s\"", g_shell_quote (filename), offset, archive_command, cpio_args->str); ++ command = g_strdup_printf ("sh -c \"dd if=%s ibs=%u skip=1 2>/dev/null | %s | bsdtar %s\"", g_shell_quote (filename), offset, archive_command, cpio_args->str); + + return system (command); + } +Index: src/fr-command-rpm.c +================================ +--- mate-file-archiver-1.6.0/src/fr-command-rpm.c 2013-03-31 ++++ mate-file-archiver-1.6.0/src/fr-command-rpm.c 2013-07-26 +@@ -175,7 +175,7 @@ + + fr_process_begin_command (comm->process, "sh"); + fr_process_add_arg (comm->process, "-c"); +- fr_process_add_arg_concat (comm->process, PRIVEXECDIR "rpm2cpio ", comm->e_filename, " -itv", NULL); ++ fr_process_add_arg_concat (comm->process, PRIVEXECDIR "rpm2cpio ", comm->e_filename, " -tvf -", NULL); + fr_process_end_command (comm->process); + fr_process_start (comm->process); + } +@@ -200,7 +200,7 @@ + + cmd = g_string_new (PRIVEXECDIR "rpm2cpio "); + g_string_append (cmd, comm->e_filename); +- g_string_append (cmd, " -idu "); ++ g_string_append (cmd, " -xf - "); + for (scan = file_list; scan; scan = scan->next) { + char *filename = g_shell_quote (scan->data); + g_string_append (cmd, filename); +@@ -233,7 +233,7 @@ + FrCommandCap capabilities; + + capabilities = FR_COMMAND_CAN_ARCHIVE_MANY_FILES; +- if (is_program_available ("cpio", check_command)) ++ if (is_program_available ("bsdtar", check_command)) + capabilities |= FR_COMMAND_CAN_READ; + + return capabilities; +@@ -244,7 +244,7 @@ + fr_command_rpm_get_packages (FrCommand *comm, + const char *mime_type) + { +- return PACKAGES ("cpio,rpm"); ++ return PACKAGES ("bsdtar,rpm"); + } |