# Maintainer (Arch): Balló György # Contributor (Arch): Alexander Fehr # Contributor (Arch): Andrew Simmons # Maintainer (Hyperbola): André Silva # Maintainer: Omar Vega Ramos pkgbase=xarchiver pkgname=(xarchiver xarchiver-gtk2) pkgver=0.5.4.13 pkgrel=1.parabola1 pkgdesc="GTK+ frontend to various command line archivers, without nonfree unrar support" arch=('i686' 'x86_64' 'armv7h') url="https://github.com/ib/xarchiver" license=('GPL') depends=('gtk2' 'gtk3') makedepends=('docbook-xsl' 'intltool' 'xmlto') optdepends=('arj: ARJ support' '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' 'unarchiver: RAR support' 'unzip: ZIP support' 'xz: xz support' 'zip: ZIP support' 'zstd: zstd support') source=($pkgbase-$pkgver.tar.gz::https://github.com/ib/xarchiver/archive/$pkgver.tar.gz libre.patch) sha256sums=('617154435731554b793ab00cc373d957c066dc29444c6189029299a89430776c' 'b0b1c728bca6ad485495edf6dd35d1375deed4364a81a2ef1d0cf9a0422ee248') prepare() { cd $pkgbase-$pkgver # Remove nonfree unRAR support patch -p1 -i ../libre.patch ./autogen.sh } build() { # GTK+ 3 version [ -d gtk3 ] || cp -r $pkgbase-$pkgver gtk3 cd gtk3 ./configure --prefix=/usr --libexecdir=/usr/lib/xfce4 make -j1 cd "$srcdir" # GTK+ 2 version [ -d gtk2 ] || cp -r $pkgbase-$pkgver gtk2 cd gtk2 ./configure --prefix=/usr --libexecdir=/usr/lib/xfce4 --enable-gtk2 make -j1 } package_xarchiver() { depends=('gtk3') conflicts=('xarchiver-libre') replaces=('xarchiver-libre') cd gtk3 make DESTDIR="$pkgdir" install } package_xarchiver-gtk2() { pkgdesc+=' (GTK+ 2 version)' depends=('gtk2') conflicts=('xarchiver') cd gtk2 make DESTDIR="$pkgdir" install }