diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 27 insertions, 14 deletions
@@ -1,4 +1,5 @@ -# Maintainer: 0strodamus <0strodamus at cox dot net> +# Maintainer: twa022 <twa022 at gmail dot com> +# Contributor: 0strodamus <0strodamus at cox dot net> # Contributor: Rob McCathie <korrode AT gmail> # Contributor: n00b <dannyurvt (at) gmail.com> # @@ -6,17 +7,19 @@ # # note: if you get "No suitable archive manager found" errors, you need # to adjust Xfce Settings > MIME Type Editor associations for Engrampa +# +# Set _gtk_ver to 3 to compile against GTK3 -pkgname=engrampa-thunar +_gtk_ver=2 _pkgname=engrampa -pkgver=1.12.0 -_pkgver=1.12 +pkgname=${_pkgname}-thunar +pkgver=1.14.1 pkgrel=1 -pkgdesc="Archive manipulator for MATE without Caja dependency (GTK2 version)" +pkgdesc="Archive manipulator for MATE without Caja dependency (GTK2 by default, change _gtk_ver to build against GTK3)" url="http://mate-desktop.org" arch=('i686' 'x86_64') license=('GPL') -depends=('bzip2' 'desktop-file-utils' 'gtk2' 'gzip' 'libarchive' 'tar') +depends=('bzip2' 'desktop-file-utils' 'gzip' 'libarchive' 'tar') makedepends=('mate-common' 'yelp-tools') optdepends=('unrar: for RAR uncompression' 'zip: for ZIP archives' 'unzip: for ZIP archives' @@ -24,17 +27,24 @@ optdepends=('unrar: for RAR uncompression' 'unace: extraction tool for the proprietary ace archive format' 'yelp: for reading MATE help documents' 'thunar-archive-plugin: create and extract archives in Thunar') -provides=($_pkgname) -conflicts=($_pkgname) -replaces=($_pkgname) +provides=() +conflicts=("${_pkgname}" "${_pkgname}-gtk3") + +if [ "${_gtk_ver}" == '3' ] ; then + depends+=('gtk3') + provides+=("${_pkgname}-gtk3") +else + depends+=('gtk2') + provides+=("${_pkgname}") +fi + options=( '!emptydirs') -source=("http://pub.mate-desktop.org/releases/${_pkgver}/${_pkgname}-${pkgver}.tar.xz" +source=("http://pub.mate-desktop.org/releases/${pkgver%.*}/${_pkgname}-${pkgver}.tar.xz" 'fr-rpm-bsdtar.patch' 'engrampa.tap') -sha1sums=('76e2ac2806c6dcf6744766df6f9d0c056df5e301' +sha1sums=('1245f5203b37b842cfaf818781b17cd22f1234b1' '219b05a979bf6f249aaae27964f02345fd81168d' '84f023a660c77cf046cff71d1d890f7de5af4110') -install=engrampa.install prepare() { cd "${srcdir}/${_pkgname}-${pkgver}" @@ -47,10 +57,13 @@ build() { ./configure \ --prefix=/usr \ --libexecdir=/usr/lib/${_pkgname} \ - --with-gtk=2.0 \ + --with-gtk=${_gtk_ver}.0 \ --disable-static \ --disable-packagekit \ - --disable-caja-actions -without-cajadir + --disable-caja-actions \ + --without-cajadir \ + --enable-magic \ + --disable-schemas-compile make } |