You are not logged in.

#1 2018-08-07 23:15:15

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

Cannot Get GTKHash (Thunar) To Build After Update To Thunar 1.8

Ever since Thunar got updated to the 1.8 series the gtkhash plugin no longer works with Thunar - the option is simply gone from Thunar.  I tried rebuilding the gtkhash and gtkhash-thunar packages and it fails due to a missing dependency called thunarx-2.  Thunarx-2 doesn't exist as a package in the repos or in the AUR.  The only thing that's close is python-thunarx and python2-thunarx.  I tried installing both of those packages and the gtkhash build still fails. I asked in the AUR page, but I haven't received an answer: https://aur.archlinux.org/packages/gtkhash/.  There are alternate package builds in the comments, but those are for the full GTK3-Devel versions of Thunar. I use the plugin daily, any help would be appreciated to get it back and working on my system.

Offline

#2 2018-08-07 23:32:23

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Cannot Get GTKHash (Thunar) To Build After Update To Thunar 1.8

What is the full output from makepkg when you try and rebuild gtkhash?

Offline

#3 2018-08-08 00:10:07

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

Re: Cannot Get GTKHash (Thunar) To Build After Update To Thunar 1.8

loqs wrote:

What is the full output from makepkg when you try and rebuild gtkhash?

Here's the error at the end of the attempted build (this is with Trizen):

configure: error: Package requirements (thunarx-2) were not met:

Package 'thunarx-2', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables THUNAR_CFLAGS
and THUNAR_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
==> ERROR: A failure occurred in build().
    Aborting...
:: Unable to build gtkhash-thunar - makepkg exited with code: 4

Offline

#4 2018-08-08 00:25:43

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Cannot Get GTKHash (Thunar) To Build After Update To Thunar 1.8

Please provide the full output from makepkg as requested.
Edit:
https://github.com/tristanheaven/gtkhas … ed02c3bff8

Last edited by loqs (2018-08-08 00:46:08)

Offline

#5 2018-08-08 01:57:30

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

Re: Cannot Get GTKHash (Thunar) To Build After Update To Thunar 1.8

@loqs

[cn@ArchLenovoShop ~]$ trizen -S gtkhash
HEAD is now at 842501d [upd] 1.1→1.1.1
Already up to date.

:: Package: gtkhash
:: AUR URL: https://aur.archlinux.org/packages.php?ID=467571

:: Content of /tmp/trizen-cn/gtkhash/PKGBUILD

# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Jan Böhringer <janboe@gmail.com>
# Contributor: Frédérik Paradis <fredy_14@live.fr>
# Contributor: GI_Jack <GI_Jack@hushmail.com>

pkgbase=gtkhash
pkgname=(gtkhash gtkhash-nemo gtkhash-nautilus gtkhash-thunar gtkhash-caja)
pkgver=1.1.1
pkgrel=1
pkgdesc="A GTK+ utility for computing message digests or checksums"
arch=('i686' 'x86_64' 'mips64el')
url="http://gtkhash.sourceforge.net/"
license=('GPL')
makedepends=('intltool' 'librsvg' 'nemo' 'libnautilus-extension' 'thunar' 'caja') # ← remove FMs here!
depends=('dconf' 'nettle' 'gtk3')
source=("https://github.com/tristanheaven/gtkhash/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz")
sha256sums=('a18c09a6af5b26c79bda81ab8a1835679fefbf2b87f1df4858c42ad45729f6bf')

build() {
  cd gtkhash-$pkgver

  ./configure --prefix=/usr --disable-schemas-compile --enable-gtkhash \
              --enable-linux-crypto --enable-nettle --disable-blake2 --with-gtk=3.0 \
              --enable-nemo --enable-nautilus --enable-thunar --enable-caja # ← remove FMs here!
  make
}

package_gtkhash() {
  make -C gtkhash-$pkgver DESTDIR="$pkgdir/" install

  # remove filemanager plugins
  rm -rf "$pkgdir"/usr/lib
}

package_gtkhash-nemo() {
  pkgdesc+=' (Nemo filemanager plugin)'
  depends=('gtkhash' 'nemo')

  make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
  # remove other filemanager plugins
  rm -rf "$pkgdir"/usr/lib/{thunarx-2,nautilus,caja}
}

package_gtkhash-nautilus() {
  pkgdesc+=' (Nautilus filemanager plugin)'
  depends=('gtkhash' 'nautilus')

  make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
  # remove other filemanager plugins
  rm -rf "$pkgdir"/usr/lib/{thunarx-2,caja,nemo}
}

package_gtkhash-thunar() {
  pkgdesc+=' (Thunar filemanager plugin)'
  depends=('gtkhash' 'thunar')

  make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
  # remove other filemanager plugins
  rm -rf "$pkgdir"/usr/lib/{nautilus,caja,nemo}
}

package_gtkhash-caja() {
  pkgdesc+=' (Caja filemanager plugin)'
  depends=('gtkhash' 'caja')

  make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
  # remove other filemanager plugins
  rm -rf "$pkgdir"/usr/lib/{thunarx-2,nautilus,nemo}
}

=>> Edit PKGBUILD? [y/N]: n

Repository      : AUR
Name            : gtkhash
Version         : 1.1.1-1
Maintainer      : carstene1ns
URL             : http://gtkhash.sourceforge.net/
AUR URL         : https://aur.archlinux.org/packages.php?ID=467571
License         : GPL
Votes           : 49
Popularity      : 0.86%
Installed       : Yes
Out Of Date     : No
Depends On      : dconf
                  nettle
                  gtk3
Make Deps       : intltool
                  librsvg
                  nemo
                  libnautilus-extension
                  thunar
                  caja
Check Deps      : None
Optional Deps   : None
Provides        : None
Conflicts With  : None
Replaces        : None
Package Base    : gtkhash
Last Update     : Thu Dec  7 17:40:43 2017
Description     : A GTK+ utility for computing message digests or checksums

==> Making package: gtkhash 1.1.1-1 (Tue 07 Aug 2018 09:56:48 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found gtkhash-1.1.1.tar.xz
==> Validating source files with sha256sums...
    gtkhash-1.1.1.tar.xz ... Passed
==> Extracting sources...
  -> Extracting gtkhash-1.1.1.tar.xz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether gcc accepts option -Werror=unknown-warning-option... no
checking whether gcc accepts option -Werror=implicit-function-declaration... yes
checking whether gcc accepts option -fno-common... yes
checking whether gcc accepts option -fvisibility=hidden... yes
checking whether gcc accepts option -pedantic... yes
checking whether gcc accepts option -Wall... yes
checking whether gcc accepts option -Wextra... yes
checking whether gcc accepts option -Waggregate-return... yes
checking whether gcc accepts option -Wbad-function-cast... yes
checking whether gcc accepts option -Wcast-align... yes
checking whether gcc accepts option -Winit-self... yes
checking whether gcc accepts option -Wfloat-equal... yes
checking whether gcc accepts option -Wlogical-op... yes
checking whether gcc accepts option -Wmissing-declarations... yes
checking whether gcc accepts option -Wmissing-noreturn... yes
checking whether gcc accepts option -Wredundant-decls... yes
checking whether gcc accepts option -Wshadow... yes
checking whether gcc accepts option -Wswitch-default... yes
checking whether gcc accepts option -Wwrite-strings... yes
checking whether gcc accepts option -Wno-parentheses-equality... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GIO... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking which GTK+ version to use... 3.0
checking for GTK... yes
checking whether to enable debugging... no
checking whether to use libb2... no
checking whether to use Libgcrypt... yes
checking for libgcrypt-config... /usr/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.7.0... yes (1.8.3)
checking whether to use the Glib Data Checksums API... no
checking whether to use the internal MD6 library... yes
checking whether to use OpenSSL libcrypto... no
checking whether to use the Linux-2.6.38+ hash algorithm interface... yes
checking linux/if_alg.h usability... yes
checking linux/if_alg.h presence... yes
checking for linux/if_alg.h... yes
checking whether to use mbed TLS... no
checking whether to use the mhash library... no
checking whether to use Nettle... yes
checking for NETTLE... yes
checking whether to use zlib... yes
checking for ZLIB... yes
checking whether to build gtkhash binary... yes
checking whether to install AppStream metadata files... yes
checking whether to build the Caja extension... yes
checking for CAJA... yes
checking whether to build the Nautilus extension... yes
checking for NAUTILUS... yes
checking whether to build the Nemo extension... yes
checking for NEMO... yes
checking whether to build the Thunar extension... yes
checking for THUNAR... no
configure: error: Package requirements (thunarx-2) were not met:

Package 'thunarx-2', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables THUNAR_CFLAGS
and THUNAR_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
==> ERROR: A failure occurred in build().
    Aborting...
:: Unable to build gtkhash - makepkg exited with code: 4
=>> Try again? [y/N]:

Last edited by Annoyingduck (2018-08-08 02:04:18)

Offline

#6 2018-08-08 08:42:26

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Cannot Get GTKHash (Thunar) To Build After Update To Thunar 1.8

diff --git a/PKGBUILD b/PKGBUILD
index 9046fd7..b6c977c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,11 +13,15 @@ url="http://gtkhash.sourceforge.net/"
 license=('GPL')
 makedepends=('intltool' 'librsvg' 'nemo' 'libnautilus-extension' 'thunar' 'caja') # ← remove FMs here!
 depends=('dconf' 'nettle' 'gtk3')
-source=("https://github.com/tristanheaven/gtkhash/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz")
-sha256sums=('a18c09a6af5b26c79bda81ab8a1835679fefbf2b87f1df4858c42ad45729f6bf')
+source=("https://github.com/tristanheaven/gtkhash/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"
+        "https://github.com/tristanheaven/gtkhash/commit/9e35e3a0c248d57c62d064edbc14d3ed02c3bff8.patch")
+sha256sums=('a18c09a6af5b26c79bda81ab8a1835679fefbf2b87f1df4858c42ad45729f6bf'
+            '16c4bde73cb5d217fd448c9513983123d03e94320a6970f59b2608309d6ce3e6')
 
 build() {
   cd gtkhash-$pkgver
+  patch -p1 -i ../9e35e3a0c248d57c62d064edbc14d3ed02c3bff8.patch
+  autoreconf -vi
 
   ./configure --prefix=/usr --disable-schemas-compile --enable-gtkhash \
               --enable-linux-crypto --enable-nettle --disable-blake2 --with-gtk=3.0 \
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Jan Böhringer <janboe@gmail.com>
# Contributor: Frédérik Paradis <fredy_14@live.fr>
# Contributor: GI_Jack <GI_Jack@hushmail.com>

pkgbase=gtkhash
pkgname=(gtkhash gtkhash-nemo gtkhash-nautilus gtkhash-thunar gtkhash-caja)
pkgver=1.1.1
pkgrel=1
pkgdesc="A GTK+ utility for computing message digests or checksums"
arch=('i686' 'x86_64' 'mips64el')
url="http://gtkhash.sourceforge.net/"
license=('GPL')
makedepends=('intltool' 'librsvg' 'nemo' 'libnautilus-extension' 'thunar' 'caja') # ← remove FMs here!
depends=('dconf' 'nettle' 'gtk3')
source=("https://github.com/tristanheaven/gtkhash/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"
        "https://github.com/tristanheaven/gtkhash/commit/9e35e3a0c248d57c62d064edbc14d3ed02c3bff8.patch")
sha256sums=('a18c09a6af5b26c79bda81ab8a1835679fefbf2b87f1df4858c42ad45729f6bf'
            '16c4bde73cb5d217fd448c9513983123d03e94320a6970f59b2608309d6ce3e6')

build() {
  cd gtkhash-$pkgver
  patch -p1 -i ../9e35e3a0c248d57c62d064edbc14d3ed02c3bff8.patch
  autoreconf -vi

  ./configure --prefix=/usr --disable-schemas-compile --enable-gtkhash \
              --enable-linux-crypto --enable-nettle --disable-blake2 --with-gtk=3.0 \
              --enable-nemo --enable-nautilus --enable-thunar --enable-caja # ← remove FMs here!
  make
}

package_gtkhash() {
  make -C gtkhash-$pkgver DESTDIR="$pkgdir/" install

  # remove filemanager plugins
  rm -rf "$pkgdir"/usr/lib
}

package_gtkhash-nemo() {
  pkgdesc+=' (Nemo filemanager plugin)'
  depends=('gtkhash' 'nemo')

  make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
  # remove other filemanager plugins
  rm -rf "$pkgdir"/usr/lib/{thunarx-2,nautilus,caja}
}

package_gtkhash-nautilus() {
  pkgdesc+=' (Nautilus filemanager plugin)'
  depends=('gtkhash' 'nautilus')

  make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
  # remove other filemanager plugins
  rm -rf "$pkgdir"/usr/lib/{thunarx-2,caja,nemo}
}

package_gtkhash-thunar() {
  pkgdesc+=' (Thunar filemanager plugin)'
  depends=('gtkhash' 'thunar')

  make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
  # remove other filemanager plugins
  rm -rf "$pkgdir"/usr/lib/{nautilus,caja,nemo}
}

package_gtkhash-caja() {
  pkgdesc+=' (Caja filemanager plugin)'
  depends=('gtkhash' 'caja')

  make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
  # remove other filemanager plugins
  rm -rf "$pkgdir"/usr/lib/{thunarx-2,nautilus,nemo}
}

Last edited by loqs (2018-08-08 08:47:37)

Offline

#7 2018-08-08 15:31:06

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

Re: Cannot Get GTKHash (Thunar) To Build After Update To Thunar 1.8

@loqs I've actually never used a custom package build. When asked if I want to edit the install when building, do I copy the edited pkgbuild you just modified and cut & paste it within the original pkgbuild?  Is this correct?  And just so I know what's happening, what did you modify in the pkgbuild?

Offline

#8 2018-08-08 15:43:46

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Cannot Get GTKHash (Thunar) To Build After Update To Thunar 1.8

The diff shows you what I modified.  You could take the original PKGBUILD and git apply the diff to produce the modified PKGBUILD.
The changes are:

  • add the patch to the sources and also its checksum

  • apply the patch at the start of build (this should really be done at in prepare)

  • call autoreconf to generate an updated configure from the patched configure.ac

Yes just replacing the original PKGBUILD with my modified one should work.

Offline

#9 2018-08-08 22:25:21

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

Re: Cannot Get GTKHash (Thunar) To Build After Update To Thunar 1.8

loqs wrote:

The diff shows you what I modified.  You could take the original PKGBUILD and git apply the diff to produce the modified PKGBUILD.
The changes are:

  • add the patch to the sources and also its checksum

  • apply the patch at the start of build (this should really be done at in prepare)

  • call autoreconf to generate an updated configure from the patched configure.ac

Yes just replacing the original PKGBUILD with my modified one should work.

Ok, this is what I'm getting now with the the updated package build (this is a snippet from the end, not the whole build):

:: Proceed with installation? [Y/n] y
(5/5) checking keys in keyring                     [######################] 100%
(5/5) checking package integrity                   [######################] 100%
(5/5) loading package files                        [######################] 100%
(5/5) checking for file conflicts                  [######################] 100%
error: failed to commit transaction (conflicting files)
/usr/lib/thunarx-3/libgtkhash-properties-thunar.so exists in both 'gtkhash-caja' and 'gtkhash-nautilus'
/usr/lib/thunarx-3/libgtkhash-properties-thunar.so exists in both 'gtkhash-caja' and 'gtkhash-nemo'
/usr/lib/thunarx-3/libgtkhash-properties-thunar.so exists in both 'gtkhash-caja' and 'gtkhash-thunar'
/usr/lib/thunarx-3/libgtkhash-properties-thunar.so exists in both 'gtkhash-nautilus' and 'gtkhash-nemo'
/usr/lib/thunarx-3/libgtkhash-properties-thunar.so exists in both 'gtkhash-nautilus' and 'gtkhash-thunar'
/usr/lib/thunarx-3/libgtkhash-properties-thunar.so exists in both 'gtkhash-nemo' and 'gtkhash-thunar'
Errors occurred, no packages were upgraded.
==> WARNING: Your packages are saved in /tmp/yaourt-tmp-cn
[cn@ArchLenovoShop ~]$

Last edited by Annoyingduck (2018-08-08 22:25:57)

Offline

#10 2018-08-08 23:13:30

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Cannot Get GTKHash (Thunar) To Build After Update To Thunar 1.8

Missed in the packing functions there are three references to thunarx-2 which need to be changed to thunarx-3 so the thunar plugin will be removed from the none thunar packages.

diff --git a/PKGBUILD b/PKGBUILD
index 9046fd7..1e8f624 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,8 +13,16 @@ url="http://gtkhash.sourceforge.net/"
 license=('GPL')
 makedepends=('intltool' 'librsvg' 'nemo' 'libnautilus-extension' 'thunar' 'caja') # ← remove FMs here!
 depends=('dconf' 'nettle' 'gtk3')
-source=("https://github.com/tristanheaven/gtkhash/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz")
-sha256sums=('a18c09a6af5b26c79bda81ab8a1835679fefbf2b87f1df4858c42ad45729f6bf')
+source=("https://github.com/tristanheaven/gtkhash/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"
+        "https://github.com/tristanheaven/gtkhash/commit/9e35e3a0c248d57c62d064edbc14d3ed02c3bff8.patch")
+sha256sums=('a18c09a6af5b26c79bda81ab8a1835679fefbf2b87f1df4858c42ad45729f6bf'
+            '16c4bde73cb5d217fd448c9513983123d03e94320a6970f59b2608309d6ce3e6')
+
+prepare() {
+  cd gtkhash-$pkgver
+  patch -p1 -i ../9e35e3a0c248d57c62d064edbc14d3ed02c3bff8.patch
+  autoreconf -vi
+}
 
 build() {
   cd gtkhash-$pkgver
@@ -38,7 +46,7 @@ package_gtkhash-nemo() {
 
   make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
   # remove other filemanager plugins
-  rm -rf "$pkgdir"/usr/lib/{thunarx-2,nautilus,caja}
+  rm -rf "$pkgdir"/usr/lib/{thunarx-3,nautilus,caja}
 }
 
 package_gtkhash-nautilus() {
@@ -47,7 +55,7 @@ package_gtkhash-nautilus() {
 
   make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
   # remove other filemanager plugins
-  rm -rf "$pkgdir"/usr/lib/{thunarx-2,caja,nemo}
+  rm -rf "$pkgdir"/usr/lib/{thunarx-3,caja,nemo}
 }
 
 package_gtkhash-thunar() {
@@ -65,5 +73,5 @@ package_gtkhash-caja() {
 
   make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
   # remove other filemanager plugins
-  rm -rf "$pkgdir"/usr/lib/{thunarx-2,nautilus,nemo}
+  rm -rf "$pkgdir"/usr/lib/{thunarx-3,nautilus,nemo}
 }
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Jan Böhringer <janboe@gmail.com>
# Contributor: Frédérik Paradis <fredy_14@live.fr>
# Contributor: GI_Jack <GI_Jack@hushmail.com>

pkgbase=gtkhash
pkgname=(gtkhash gtkhash-nemo gtkhash-nautilus gtkhash-thunar gtkhash-caja)
pkgver=1.1.1
pkgrel=1
pkgdesc="A GTK+ utility for computing message digests or checksums"
arch=('i686' 'x86_64' 'mips64el')
url="http://gtkhash.sourceforge.net/"
license=('GPL')
makedepends=('intltool' 'librsvg' 'nemo' 'libnautilus-extension' 'thunar' 'caja') # ← remove FMs here!
depends=('dconf' 'nettle' 'gtk3')
source=("https://github.com/tristanheaven/gtkhash/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"
        "https://github.com/tristanheaven/gtkhash/commit/9e35e3a0c248d57c62d064edbc14d3ed02c3bff8.patch")
sha256sums=('a18c09a6af5b26c79bda81ab8a1835679fefbf2b87f1df4858c42ad45729f6bf'
            '16c4bde73cb5d217fd448c9513983123d03e94320a6970f59b2608309d6ce3e6')

prepare() {
  cd gtkhash-$pkgver
  patch -p1 -i ../9e35e3a0c248d57c62d064edbc14d3ed02c3bff8.patch
  autoreconf -vi
}

build() {
  cd gtkhash-$pkgver

  ./configure --prefix=/usr --disable-schemas-compile --enable-gtkhash \
              --enable-linux-crypto --enable-nettle --disable-blake2 --with-gtk=3.0 \
              --enable-nemo --enable-nautilus --enable-thunar --enable-caja # ← remove FMs here!
  make
}

package_gtkhash() {
  make -C gtkhash-$pkgver DESTDIR="$pkgdir/" install

  # remove filemanager plugins
  rm -rf "$pkgdir"/usr/lib
}

package_gtkhash-nemo() {
  pkgdesc+=' (Nemo filemanager plugin)'
  depends=('gtkhash' 'nemo')

  make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
  # remove other filemanager plugins
  rm -rf "$pkgdir"/usr/lib/{thunarx-3,nautilus,caja}
}

package_gtkhash-nautilus() {
  pkgdesc+=' (Nautilus filemanager plugin)'
  depends=('gtkhash' 'nautilus')

  make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
  # remove other filemanager plugins
  rm -rf "$pkgdir"/usr/lib/{thunarx-3,caja,nemo}
}

package_gtkhash-thunar() {
  pkgdesc+=' (Thunar filemanager plugin)'
  depends=('gtkhash' 'thunar')

  make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
  # remove other filemanager plugins
  rm -rf "$pkgdir"/usr/lib/{nautilus,caja,nemo}
}

package_gtkhash-caja() {
  pkgdesc+=' (Caja filemanager plugin)'
  depends=('gtkhash' 'caja')

  make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
  # remove other filemanager plugins
  rm -rf "$pkgdir"/usr/lib/{thunarx-3,nautilus,nemo}
}

Offline

#11 2018-08-09 01:41:04

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

Re: Cannot Get GTKHash (Thunar) To Build After Update To Thunar 1.8

loqs wrote:

Missed in the packing functions there are three references to thunarx-2 which need to be changed to thunarx-3 so the thunar plugin will be removed from the none thunar packages.

Ok, your edited pkgbuild worked and I was able to rebuild the GTKHash package again (along with all the file manager plugins). Thank you for helping me figure out how to get it built again. Unfortunately rebuilding against Thunar 1.8 did not fix the gtkhash-thunar plugin issue. The plugin does not work with the latest Thunar, the option is still gone from Thunar's property tabs. I'm gonna write a comment in the AUR package linking this thread and hopefully someone will come along and get the Thunar GTKHash plugin working again.

Thanks again Loqs.

Offline

#12 2018-08-09 01:55:34

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

Re: Cannot Get GTKHash (Thunar) To Build After Update To Thunar 1.8

Seeing as the program GTKHash itself is working fine, for now as a temporary fix I added a Thunar Custom Action which is actually working pretty dam well.  I think I may like it better than the actual gtkhash-thunar plugin. Here's the custom action I added:

Name: Checksum
Description: Calculate Checksum Using GTKHash
Command: gtkhash %f

Then just choose an icon you want and check off all the appearance conditions except directories, and any file you need to hash just right click it and choose "checksum" from the popup menu and gtkhash will fire right up and immediately calculate the checksum.  Then just paste in your comparative checksum and walla...done.

Last edited by Annoyingduck (2018-08-10 15:05:03)

Offline

Board footer

Powered by FluxBB