blob: 75499428b18f378c62b17f58afead02cf05dcadb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# $Id: PKGBUILD 105928 2014-02-19 11:27:15Z bgyorgy $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Alexander Fehr <pizzapunk gmail com>
# Contributor: Andrew Simmons <andrew.simmons@gmail.com>
# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
_pkgname=xarchiver
pkgname=xarchiver-libre
pkgver=0.5.3
pkgrel=1.1
pkgdesc="GTK+ frontend to various command line archivers, without nonfree unrar support"
arch=('i686' 'x86_64' 'mips64el')
url="http://xarchiver.sourceforge.net/"
license=('GPL')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
replaces=("$_pkgname")
depends=('gtk2' 'desktop-file-utils')
makedepends=('intltool')
optdepends=('zip: ZIP support'
'unzip: ZIP support'
'p7zip: 7z support'
'arj: ARJ support'
'lzop: LZOP support'
'cpio: RPM support')
install=xarchiver.install
source=(http://downloads.sourceforge.net/xarchiver/xarchiver-$pkgver.tar.bz2
xarchiver-0.5.3-fix-rpm-support.patch
xarchiver-0.5.3-fix-double-escaping.patch
xarchiver-0.5.3-fix-password-protected.patch
xarchiver-0.5.3-add-mime-types.patch
xarchiver-0.5.3-remove-nonfree-unrar-support.patch)
md5sums=('fd390bbd2df76a5f8a007bdeae82d4aa'
'812b93339f5e3332621f3c5abebfe277'
'6178d7ab679b761469c880a8db991907'
'35ab96d98521a0a36f3e9e9ec0969107'
'f9119f5290caa195a56b7d3c63d9137d'
'6ba9f6a6dd9685d8309bd9ed4df1f339')
prepare() {
cd $_pkgname-$pkgver
# Fix RPM support
patch -Np1 -i ../xarchiver-0.5.3-fix-rpm-support.patch
# Fix error when trying to create archives with spaces
patch -Np1 -i ../xarchiver-0.5.3-fix-double-escaping.patch
# Fix segfault when handling password protected files
patch -Np1 -i ../xarchiver-0.5.3-fix-password-protected.patch
# Add more MIME types in the desktop file
patch -Np1 -i ../xarchiver-0.5.3-add-mime-types.patch
# Remove nonfree unRAR support
patch -Np1 -i ../xarchiver-0.5.3-remove-nonfree-unrar-support.patch
rm -v src/rar.{c,h}
}
build() {
cd $_pkgname-$pkgver
./configure --prefix=/usr --libexecdir=/usr/lib/xfce4
make
}
package() {
cd $_pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
|