summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre-multilib/lib32-clang/PKGBUILD98
-rw-r--r--libre-multilib/lib32-libvdpau/PKGBUILD36
-rw-r--r--libre-multilib/lib32-mesa-libcl/PKGBUILD59
-rw-r--r--libre-multilib/wine-libre/30-win32-aliases.conf20
-rw-r--r--libre-multilib/wine-libre/PKGBUILD182
-rw-r--r--libre-multilib/wine-libre/wine.install12
-rw-r--r--libre/mate-document-viewer-libre/PKGBUILD51
-rw-r--r--libre/mate-document-viewer-libre/mate-document-viewer.install13
-rw-r--r--libre/mate-file-archiver-libre/PKGBUILD51
-rw-r--r--libre/mate-file-archiver-libre/fr-rpm-bsdtar.patch60
-rw-r--r--libre/mate-file-archiver-libre/mate-file-archiver.install13
11 files changed, 595 insertions, 0 deletions
diff --git a/libre-multilib/lib32-clang/PKGBUILD b/libre-multilib/lib32-clang/PKGBUILD
new file mode 100644
index 000000000..aaa9bd91e
--- /dev/null
+++ b/libre-multilib/lib32-clang/PKGBUILD
@@ -0,0 +1,98 @@
+# Maintainer: PitBall
+
+pkgname=lib32-clang
+pkgver=3.4
+pkgrel=2
+arch=('x86_64')
+url="http://llvm.org/"
+license=('custom:University of Illinois/NCSA Open Source License')
+makedepends=('lib32-libffi' 'lib32-zlib' 'python2' 'gcc-multilib' 'clang' 'lib32-llvm' 'bc')
+source=(http://llvm.org/releases/$pkgver/llvm-$pkgver.src.tar.gz
+ http://llvm.org/releases/$pkgver/clang-$pkgver.src.tar.gz
+ http://llvm.org/releases/$pkgver/compiler-rt-$pkgver.src.tar.gz)
+sha256sums=('25a5612d692c48481b9b397e2b55f4870e447966d66c96d655241702d44a2628'
+ '22a9780db3b85a7f2eb9ea1f7f6e00da0249e3d12851e8dea0f62f1783242b1b'
+ 'f37c89b1383ce462d47537a0245ac798600887a9be9f63073e16b79ed536ab5c')
+options=('staticlibs')
+
+prepare() {
+ cd "$srcdir/llvm-$pkgver"
+
+ rm -rf projects/compiler-rt
+ mv "$srcdir/clang-$pkgver" tools/clang
+
+ rm -rf projects/compiler-rt
+ mv "$srcdir/compiler-rt-$pkgver" projects/compiler-rt
+
+ # Fix installation directories, ./configure doesn't seem to set them right
+ sed -i -e 's:\$(PROJ_prefix)/lib:$(PROJ_prefix)/lib32:' \
+ -e 's:\$(PROJ_prefix)/docs/llvm:$(PROJ_prefix)/share/doc/llvm:' \
+ Makefile.config.in
+ sed -i '/ActiveLibDir = ActivePrefix/s:lib:lib32:' \
+ tools/llvm-config/llvm-config.cpp
+ sed -i 's:LLVM_LIBDIR="${prefix}/lib":LLVM_LIBDIR="${prefix}/lib32":' \
+ autoconf/configure.ac \
+ configure
+
+ # Fix insecure rpath (http://bugs.archlinux.org/task/14017)
+ sed -i 's:$(RPATH) -Wl,$(\(ToolDir\|LibDir\|ExmplDir\))::g' Makefile.rules
+
+ # Use system lib32-llvm
+ install -d $srcdir/llvm-$pkgver/Release/lib
+ for file in ` pacman -Ql lib32-llvm |grep /lib32/ |awk '{print $2}' |sed '/\/$/d'`; do
+ ln -sf $file $srcdir/llvm-$pkgver/Release/lib/
+ done
+}
+
+build() {
+ cd "$srcdir/llvm-$pkgver"
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export CLANG="clang -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+ export LLVM_CONFIG=/usr/bin/llvm-config32
+
+ # Include location of libffi headers in CPPFLAGS
+ CPPFLAGS+=" $(pkg-config --cflags libffi)"
+
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib32 \
+ --sysconfdir=/etc \
+ --enable-shared \
+ --enable-libffi \
+ --enable-targets=x86 \
+ --enable-experimental-targets=R600 \
+ --enable-bindings=none \
+ --disable-expensive-checks \
+ --disable-debug-runtime \
+ --disable-assertions \
+ --with-binutils-include=/usr/include \
+ --with-python=/usr/bin/python2 \
+ --host=i686-pc-linux-gnu \
+ --target=i686-pc-linux-gnu \
+ --enable-optimized
+
+# --disable-clang-static-analyzer \
+
+# make
+ make -C projects/compiler-rt clang_linux
+ make -C tools/clang/utils/TableGen
+ make -C tools/clang/lib
+}
+
+package_lib32-clang() {
+ pkgdesc="C language family frontend for LLVM (32-bit)"
+ url="http://clang.llvm.org/"
+ depends=('clang' 'lib32-llvm' 'gcc-multilib')
+
+ install -d $pkgdir/usr/lib32/clang/$pkgver
+ ln -s lib32 $pkgdir/usr/lib
+
+ cd "$srcdir/llvm-$pkgver/tools/clang"
+ make -C lib DESTDIR="$pkgdir" install
+ # Fix permissions of static libs
+ chmod -x "$pkgdir"/usr/lib32/*.a
+ mv $pkgdir/usr/lib32/clang{,/$pkgver}/include
+ rm -rf $pkgdir/usr/lib
+}
diff --git a/libre-multilib/lib32-libvdpau/PKGBUILD b/libre-multilib/lib32-libvdpau/PKGBUILD
new file mode 100644
index 000000000..0e776abcb
--- /dev/null
+++ b/libre-multilib/lib32-libvdpau/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Lara Maia <lara@craft.net.br>
+# Contributor: josephgbr <rafael.f.f1@gmail.com>
+# Contributor: TryA <tryagainprod {at} gmail.com>
+# Contributor: Ionut Biru <ibiru@archlinux.org>
+
+_pkgbase=libvdpau
+pkgname=lib32-libvdpau
+pkgver=0.7
+pkgrel=1
+pkgdesc="Nvidia VDPAU library (32-bit)"
+arch=('x86_64')
+url=http://cgit.freedesktop.org/~aplattner/libvdpau
+license=('custom')
+depends=('lib32-gcc-libs' 'lib32-libxext' "${_pkgbase}") #libx11
+makedepends=('gcc-multilib' 'dri2proto' )
+options=('!libtool')
+source=(http://people.freedesktop.org/~aplattner/vdpau/${_pkgbase}-${pkgver}.tar.gz)
+sha256sums=('24dc08467ce8c59d6cfbf0d34d2dd1f86b4ff62e90777e0a8f513c5c9de9bce0')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd ${_pkgbase}-${pkgver}
+ ./configure --prefix=/usr --libdir=/usr/lib32 --sysconfdir=/etc
+ make
+}
+
+package() {
+ make -C ${_pkgbase}-${pkgver} DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}"/{etc,usr/include}
+
+ install -dm755 "$pkgdir"/usr/share/licenses
+ ln -s $_pkgbase "$pkgdir"/usr/share/licenses/$pkgname
+}
diff --git a/libre-multilib/lib32-mesa-libcl/PKGBUILD b/libre-multilib/lib32-mesa-libcl/PKGBUILD
new file mode 100644
index 000000000..77a06620d
--- /dev/null
+++ b/libre-multilib/lib32-mesa-libcl/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Márcio Silva <coadde@parabola.nu>
+
+pkgbase=mesa
+_pkgname=libcl
+pkgname=lib32-$pkgbase-$_pkgname
+_pkgflag=libre
+pkgver=10.0.2
+pkgrel=2
+pkgdesc='Mesa 3-D OpenCL library (32-bit)'
+url=http://${pkgbase}3d.sourceforge.net
+license=(MIT Khronos LGPL)
+arch=(x86_64)
+depends=(
+ lib32-libclc
+ lib32-$pkgbase
+)
+optdepends='opencl-headers: headers necessary for OpenCL development'
+makedepends=(
+ lib32-clang
+ dri2proto
+ glproto
+ imake
+ lib32-libxml2
+ python2
+ lib32-libvdpau
+)
+provides=(lib32-$_pkgname-$_pkgflag lib32-$_pkgname lib32-opencl-nvidia lib32-opencl-nvidia-304xx)
+conflicts=(lib32-$_pkgname-$_pkgflag lib32-$_pkgname lib32-opencl-nvidia lib32-opencl-nvidia-304xx)
+replaces=(lib32-$_pkgname-$_pkgflag lib32-$_pkgname lib32-opencl-nvidia lib32-opencl-nvidia-304xx)
+source=ftp://ftp.freedesktop.org/pub/$pkgbase/${pkgver%.0}/${pkgbase^}Lib-$pkgver.tar.bz2
+sha512sums=15741b916e6338645a28961fb7a731f8c2a33afe11e91c0bd144f9d9afca96837c9caf7fb2fd769aedbeba2b8b12443e7a7eb8ab6cd2270024308ca11e88ff24
+
+build() {
+ cd $srcdir/${pkgbase^}-$pkgver
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+ export LLVM_CONFIG=/usr/bin/llvm-config32
+ autoreconf -vfi
+ ./configure --enable-32-bit\
+ --libdir=/usr/lib32\
+ --prefix=/usr\
+ --enable-opencl\
+ --enable-gallium-llvm\
+ --enable-r600-llvm-compiler\
+ --with-clang-libdir=/usr/lib\
+ --with-llvm-shared-libs\
+ --with-gallium-drivers=i915,nouveau,r300,r600,radeonsi,svga,swrast
+ make V=0
+}
+
+package() {
+ cd $srcdir/${pkgbase^}-$pkgver
+ make -C src/gallium/targets/opencl DESTDIR=$pkgdir install
+ install -vdm755 $pkgdir/usr/share/licenses/$pkgname
+ install -vm644 docs/COPYING $pkgdir/usr/share/licenses/$pkgname
+ install -vm644 docs/license.html $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
diff --git a/libre-multilib/wine-libre/30-win32-aliases.conf b/libre-multilib/wine-libre/30-win32-aliases.conf
new file mode 100644
index 000000000..99ae1f7b8
--- /dev/null
+++ b/libre-multilib/wine-libre/30-win32-aliases.conf
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias binding="same">
+ <family>MS Shell Dlg</family>
+ <accept><family>Microsoft Sans Serif</family></accept>
+ <default><family>sans-serif</family></default>
+ </alias>
+ <alias binding="same">
+ <family>MS Shell Dlg 2</family>
+ <accept><family>Tahoma</family></accept>
+ <default><family>sans-serif</family></default>
+ </alias>
+
+ <alias binding="same">
+ <family>MS Sans Serif</family>
+ <prefer><family>Microsoft Sans Serif</family></prefer>
+ <default><family>sans-serif</family></default>
+ </alias>
+</fontconfig>
diff --git a/libre-multilib/wine-libre/PKGBUILD b/libre-multilib/wine-libre/PKGBUILD
new file mode 100644
index 000000000..810e9dbd4
--- /dev/null
+++ b/libre-multilib/wine-libre/PKGBUILD
@@ -0,0 +1,182 @@
+# $Id: PKGBUILD 104338 2014-01-18 08:57:12Z bluewind $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
+# Contributor: Eduardo Romero <eduardo@archlinux.org>
+# Contributor: Giovanni Scafora <giovanni@archlinux.org>
+# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
+
+_pkgname=wine
+pkgname=wine-libre
+pkgver=1.7.11
+pkgrel=1
+
+_pkgbasever=${pkgver/rc/-rc}
+
+source=(http://prdownloads.sourceforge.net/$_pkgname/$_pkgname-$_pkgbasever.tar.bz2{,.sign}
+ 30-win32-aliases.conf)
+md5sums=('e0e55105e5c7ba5277023bd54ac60d44'
+ 'SKIP'
+ '1ff4e467f59409272088d92173a0f801')
+
+pkgdesc="A compatibility layer for running Windows programs, with mesa-libcl support"
+url="http://www.winehq.com"
+arch=(i686 x86_64)
+options=(staticlibs)
+license=(LGPL)
+install=wine.install
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+
+_depends=(
+ fontconfig lib32-fontconfig
+ libxcursor lib32-libxcursor
+ libxrandr lib32-libxrandr
+ libxdamage lib32-libxdamage
+ libxi lib32-libxi
+ gettext lib32-gettext
+ freetype2 lib32-freetype2
+ glu lib32-glu
+ libsm lib32-libsm
+ gcc-libs lib32-gcc-libs
+ desktop-file-utils
+)
+
+makedepends=(autoconf ncurses bison perl fontforge flex prelink
+ 'gcc>=4.5.0-2' 'gcc-multilib>=4.5.0-2'
+ giflib lib32-giflib
+ libpng lib32-libpng
+ gnutls lib32-gnutls
+ libxinerama lib32-libxinerama
+ libxcomposite lib32-libxcomposite
+ libxmu lib32-libxmu
+ libxxf86vm lib32-libxxf86vm
+ libxml2 lib32-libxml2
+ libldap lib32-libldap
+ lcms lib32-lcms
+ mpg123 lib32-mpg123
+ openal lib32-openal
+ v4l-utils lib32-v4l-utils
+ alsa-lib lib32-alsa-lib
+ libxcomposite lib32-libxcomposite
+ mesa lib32-mesa
+ mesa-libgl lib32-mesa-libgl
+ mesa-libcl lib32-mesa-libcl
+ samba
+ opencl-headers
+)
+
+optdepends=(
+ giflib lib32-giflib
+ libpng lib32-libpng
+ libldap lib32-libldap
+ gnutls lib32-gnutls
+ lcms lib32-lcms
+ libxml2 lib32-libxml2
+ mpg123 lib32-mpg123
+ openal lib32-openal
+ v4l-utils lib32-v4l-utils
+ libpulse lib32-libpulse
+ alsa-plugins lib32-alsa-plugins
+ alsa-lib lib32-alsa-lib
+ libjpeg-turbo lib32-libjpeg-turbo
+ libxcomposite lib32-libxcomposite
+ libxinerama lib32-libxinerama
+ ncurses lib32-ncurses
+ mesa-libcl lib32-mesa-libcl
+ cups
+ samba dosbox
+)
+
+if [[ $CARCH == i686 ]]; then
+ # Strip lib32 etc. on i686
+ _depends=(${_depends[@]/*32-*/})
+ makedepends=(${makedepends[@]/*32-*/} ${_depends[@]})
+ makedepends=(${makedepends[@]/*-multilib*/})
+ optdepends=(${optdepends[@]/*32-*/})
+else
+ makedepends=(${makedepends[@]} ${_depends[@]})
+ provides=("bin32-wine=$pkgver" "wine-wow64=$pkgver")
+ conflicts=('bin32-wine' 'wine-wow64')
+ replaces=('bin32-wine')
+fi
+
+build() {
+ cd "$srcdir"
+
+ # Allow ccache to work
+ mv $_pkgname-$_pkgbasever $_pkgname
+
+ # ncurses fix
+ sed -i 's|libncurses|libncursesw|g' "$srcdir/$_pkgname/configure"
+ sed -i 's|lncurses|lncursesw|g' "$srcdir/$_pkgname/configure"
+
+ # Get rid of old build dirs
+ rm -rf $_pkgname-{32,64}-build
+ mkdir $_pkgname-32-build
+
+ # These additional CPPFLAGS solve FS#27662 and FS#34195
+ export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
+
+ if [[ $CARCH == x86_64 ]]; then
+ msg2 "Building Wine-64..."
+
+ mkdir $_pkgname-64-build
+ cd "$srcdir/$_pkgname-64-build"
+ ../$_pkgname/configure \
+ --prefix=/usr \
+ --libdir=/usr/lib \
+ --with-x \
+ --without-gstreamer \
+ --enable-win64
+ # Gstreamer was disabled for FS#33655
+
+ make
+
+ _wine32opts=(
+ --libdir=/usr/lib32
+ --with-wine64="$srcdir/$_pkgname-64-build"
+ )
+
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+ fi
+
+ msg2 "Building Wine-32..."
+ cd "$srcdir/$_pkgname-32-build"
+ ../$_pkgname/configure \
+ --prefix=/usr \
+ --with-x \
+ --without-gstreamer \
+ "${_wine32opts[@]}"
+
+ # These additional flags solve FS#23277
+ make CFLAGS+="-mstackrealign -mincoming-stack-boundary=2" CXXFLAGS+="-mstackrealign -mincoming-stack-boundary=2"
+}
+
+package() {
+ depends=(${_depends[@]})
+
+ msg2 "Packaging Wine-32..."
+ cd "$srcdir/$_pkgname-32-build"
+
+ if [[ $CARCH == i686 ]]; then
+ make prefix="$pkgdir/usr" install
+ else
+ make prefix="$pkgdir/usr" \
+ libdir="$pkgdir/usr/lib32" \
+ dlldir="$pkgdir/usr/lib32/wine" install
+
+ msg2 "Packaging Wine-64..."
+ cd "$srcdir/$_pkgname-64-build"
+ make prefix="$pkgdir/usr" \
+ libdir="$pkgdir/usr/lib" \
+ dlldir="$pkgdir/usr/lib/wine" install
+ fi
+
+ # Font aliasing settings for Win32 applications
+ install -d "$pkgdir"/etc/fonts/conf.{avail,d}
+ install -m644 "$srcdir/30-win32-aliases.conf" "$pkgdir/etc/fonts/conf.avail"
+ ln -s ../conf.avail/30-win32-aliases.conf "$pkgdir/etc/fonts/conf.d/30-win32-aliases.conf"
+}
+
+# vim:set ts=8 sts=2 sw=2 et:
diff --git a/libre-multilib/wine-libre/wine.install b/libre-multilib/wine-libre/wine.install
new file mode 100644
index 000000000..21dda162b
--- /dev/null
+++ b/libre-multilib/wine-libre/wine.install
@@ -0,0 +1,12 @@
+post_install() {
+ update-desktop-database -q
+ #echo "This wine package is wow64 enabled. This means it can run 32bit/64bit Windows apps on x86_64."
+ #echo "If you are on x86_64, the default WINEARCH will be win64."
+ #echo "This will cause a lot of Windows applications to malfunction even if they usually work in wine."
+ #echo "Please create your ~/.wine with 'WINEARCH=win32 winecfg' if you are unsure and on x86_64."
+ #echo "See the Parabola wiki on wine for more information."
+}
+
+post_remove() {
+ update-desktop-database -q
+}
diff --git a/libre/mate-document-viewer-libre/PKGBUILD b/libre/mate-document-viewer-libre/PKGBUILD
new file mode 100644
index 000000000..6557d3469
--- /dev/null
+++ b/libre/mate-document-viewer-libre/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer : Martin Wimpress <code@flexion.org>
+
+_pkgname=mate-document-viewer
+pkgname=mate-document-viewer-libre
+pkgver=1.6.2
+pkgrel=1
+pkgdesc="Simply a document viewer, with libarchive recommendation"
+url="http://mate-desktop.org"
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL')
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+depends=('dconf' 'dbus' 'desktop-file-utils' 'gtk2' 'libmatekeyring' 'libsm'
+ 'libspectre' 'mate-icon-theme' 'poppler-glib' 'zlib')
+makedepends=('djvulibre' 'gobject-introspection' 'libgxps' 'mate-common'
+ 'mate-doc-utils' 'mate-file-manager' 'perl-xml-parser' 'texlive-bin')
+optdepends=('djvulibre: DjVu support'
+ 'libgxps: XPS support'
+ 'mate-file-manager: Document Properties extension'
+ 'p7zip: cbz and cb7 compressed comic books'
+ 'texlive-bin: DVI support'
+ 'libarchive: cbr compressed comic books')
+options=('!emptydirs')
+groups=('mate-extra')
+source=("http://pub.mate-desktop.org/releases/1.6/${_pkgname}-${pkgver}.tar.xz")
+sha1sums=('295a59e7b7babd86f42eebb2a9ac5405dd7b2997')
+install=${_pkgname}.install
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib/${_pkgname} \
+ --enable-gtk-doc \
+ --enable-djvu \
+ --enable-dvi \
+ --enable-t1lib \
+ --enable-pixbuf \
+ --enable-comics \
+ --enable-introspection \
+ --disable-static \
+ --disable-scrollkeeper
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ ln -s atril "${pkgdir}/usr/bin/mate-document-viewer"
+}
diff --git a/libre/mate-document-viewer-libre/mate-document-viewer.install b/libre/mate-document-viewer-libre/mate-document-viewer.install
new file mode 100644
index 000000000..bf6781f93
--- /dev/null
+++ b/libre/mate-document-viewer-libre/mate-document-viewer.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/mate-file-archiver-libre/PKGBUILD b/libre/mate-file-archiver-libre/PKGBUILD
new file mode 100644
index 000000000..5072dd583
--- /dev/null
+++ b/libre/mate-file-archiver-libre/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer : Martin Wimpress <code@flexion.org>
+
+_pkgname=mate-file-archiver
+pkgname=mate-file-archiver-libre
+pkgver=1.6.1
+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')
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+depends=('bzip2' 'desktop-file-utils' 'gtk2' 'gzip' 'libarchive'
+ 'mate-file-manager' 'tar')
+makedepends=('mate-common' 'mate-doc-utils' 'perl-xml-parser')
+optdepends=('arj: for ARJ support'
+ 'p7zip: for 7zip support'
+ 'unar: for RAR extract support'
+ 'unzip: for ZIP extract support'
+ 'zip: for ZIP support')
+options=('!emptydirs')
+groups=('mate-extra')
+source=("http://pub.mate-desktop.org/releases/1.6/${_pkgname}-${pkgver}.tar.xz"
+ fr-rpm-bsdtar.patch)
+sha1sums=('53a28d6fb559151c0b8d6f9a658113c77cdb938a'
+ '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} \
+ --disable-static \
+ --disable-scrollkeeper \
+ --disable-packagekit
+ mate-doc-prepare --force
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/libre/mate-file-archiver-libre/fr-rpm-bsdtar.patch b/libre/mate-file-archiver-libre/fr-rpm-bsdtar.patch
new file mode 100644
index 000000000..93a783176
--- /dev/null
+++ b/libre/mate-file-archiver-libre/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");
+ }
diff --git a/libre/mate-file-archiver-libre/mate-file-archiver.install b/libre/mate-file-archiver-libre/mate-file-archiver.install
new file mode 100644
index 000000000..bf6781f93
--- /dev/null
+++ b/libre/mate-file-archiver-libre/mate-file-archiver.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
+}