summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Burgos2020-07-10 21:37:21 -0600
committerSam Burgos2020-07-10 21:37:21 -0600
commit7c4cdde36344ecb17c02fac3d6efc7cbb13b1a96 (patch)
treef9db3b1525b6adc1ffa25039e23401c2c26a8a11
parentbc63068b310ef3b2d371433f0fc0fec441e188e5 (diff)
downloadaur-7c4cdde36344ecb17c02fac3d6efc7cbb13b1a96.tar.gz
updated to version 1.3, rewritten PKGBUILD to add some additional changes and added peony file manager support
-rw-r--r--.SRCINFO41
-rw-r--r--PKGBUILD171
2 files changed, 171 insertions, 41 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2e5ee838d7f..a6e46e7790d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,43 +1,48 @@
pkgbase = gtkhash
pkgdesc = A GTK+ utility for computing message digests or checksums
- pkgver = 1.2
+ pkgver = 1.3
pkgrel = 1
- url = http://gtkhash.sourceforge.net/
+ url = https://github.com/tristanheaven/gtkhash
arch = i686
arch = x86_64
arch = mips64el
license = GPL
+ makedepends = dconf
+ makedepends = gtk3
makedepends = intltool
makedepends = librsvg
- makedepends = nemo
- makedepends = libnautilus-extension
- makedepends = thunar
- makedepends = caja
+ makedepends = nettle
+ makedepends = xdg-utils
+ source = https://github.com/tristanheaven/gtkhash/releases/download/v1.3/gtkhash-1.3.tar.xz
+ sha256sums = a94b12165bfa2ebec7270ce3bb8fb27da8a0624fb48ecfc0b68bcaf8c40db7af
+
+pkgname = gtkhash
depends = dconf
- depends = nettle
depends = gtk3
- source = https://github.com/tristanheaven/gtkhash/releases/download/v1.2/gtkhash-1.2.tar.xz
- sha256sums = bd870bac6e14babfb6268b617a42e4bcd776559dd80dd62ad9f7cc28b773b8b2
+ depends = nettle
-pkgname = gtkhash
+pkgname = gtkhash-caja
+ pkgdesc = A GTK+ utility for computing message digests or checksums (Caja filemanager plugin)
+ depends = gtkhash
+ depends = caja
+
+pkgname = gtkhash-nautilus
+ pkgdesc = A GTK+ utility for computing message digests or checksums (Nautilus filemanager plugin)
+ depends = gtkhash
+ depends = nautilus
pkgname = gtkhash-nemo
pkgdesc = A GTK+ utility for computing message digests or checksums (Nemo filemanager plugin)
depends = gtkhash
depends = nemo
-pkgname = gtkhash-nautilus
- pkgdesc = A GTK+ utility for computing message digests or checksums (Nautilus filemanager plugin)
+pkgname = gtkhash-peony
+ pkgdesc = A GTK+ utility for computing message digests or checksums (Peony filemanager plugin)
depends = gtkhash
- depends = nautilus
+ depends = peony
pkgname = gtkhash-thunar
pkgdesc = A GTK+ utility for computing message digests or checksums (Thunar filemanager plugin)
depends = gtkhash
depends = thunar
-pkgname = gtkhash-caja
- pkgdesc = A GTK+ utility for computing message digests or checksums (Caja filemanager plugin)
- depends = gtkhash
- depends = caja
-
diff --git a/PKGBUILD b/PKGBUILD
index 573f69b7375..8358657493b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,69 +1,194 @@
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
+# Co-Maintainer: Sam Burgos < santiago dot burgos1089 at gmail dot com >
# 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.2
+pkgname=(
+ gtkhash
+ gtkhash-caja
+ gtkhash-nautilus
+ gtkhash-nemo
+ gtkhash-peony
+ gtkhash-thunar
+)
+pkgver=1.3
pkgrel=1
pkgdesc="A GTK+ utility for computing message digests or checksums"
arch=('i686' 'x86_64' 'mips64el')
-url="http://gtkhash.sourceforge.net/"
+url="https://github.com/tristanheaven/gtkhash"
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=('bd870bac6e14babfb6268b617a42e4bcd776559dd80dd62ad9f7cc28b773b8b2')
+
+makedepends=(
+ 'dconf'
+ 'gtk3'
+ 'intltool'
+ 'librsvg'
+ 'nettle'
+ 'xdg-utils'
+)
+
+source=("${url}/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz")
+sha256sums=('a94b12165bfa2ebec7270ce3bb8fb27da8a0624fb48ecfc0b68bcaf8c40db7af')
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!
+#build with Caja support only
+if [[ $(xdg-mime query default inode/directory) = caja.desktop ]]; then
+ ./configure \
+ --prefix=/usr \
+ --disable-schemas-compile \
+ --enable-gtkhash \
+ --enable-linux-crypto \
+ --enable-nettle \
+ --disable-blake2 \
+ --with-gtk=3.0 \
+ --enable-caja
+
+#build with Nautilus support only
+elif [[ $(xdg-mime query default inode/directory) = nautilus.desktop ]]; then
+ ./configure \
+ --prefix=/usr \
+ --disable-schemas-compile \
+ --enable-gtkhash \
+ --enable-linux-crypto \
+ --enable-nettle \
+ --disable-blake2 \
+ --with-gtk=3.0 \
+ --enable-nautilus
+
+#build with Nemo support only
+elif [[ $(xdg-mime query default inode/directory) = nemo.desktop ]]; then
+ ./configure \
+ --prefix=/usr \
+ --disable-schemas-compile \
+ --enable-gtkhash \
+ --enable-linux-crypto \
+ --enable-nettle \
+ --disable-blake2 \
+ --with-gtk=3.0 \
+ --enable-nemo
+
+#build with Peony support only
+elif [[ $(xdg-mime query default inode/directory) = peony.desktop ]]; then
+ ./configure \
+ --prefix=/usr \
+ --disable-schemas-compile \
+ --enable-gtkhash \
+ --enable-linux-crypto \
+ --enable-nettle \
+ --disable-blake2 \
+ --with-gtk=3.0 \
+ --enable-peony
+
+#build with Thunar support only
+elif [[ $(xdg-mime query default inode/directory) = thunar.desktop ]]; then
+ ./configure \
+ --prefix=/usr \
+ --disable-schemas-compile \
+ --enable-gtkhash \
+ --enable-linux-crypto \
+ --enable-nettle \
+ --disable-blake2 \
+ --with-gtk=3.0 \
+ --enable-thunar
+
+#build with all file manager support
+else
+ ./configure \
+ --prefix=/usr \
+ --disable-schemas-compile \
+ --enable-gtkhash \
+ --enable-linux-crypto \
+ --enable-nettle \
+ --disable-blake2 \
+ --with-gtk=3.0 \
+ --enable-caja \
+ --enable-nautilus \
+ --enable-nemo \
+ --enable-peony \
+ --enable-thunar
+fi
+
make
+
+ #./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() {
+ depends=(
+ 'dconf'
+ 'gtk3'
+ 'nettle'
+ )
+
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')
+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,3},nautilus,caja}
+ rm -rf "$pkgdir"/usr/lib/{thunarx-{2,3},nautilus,nemo}
}
package_gtkhash-nautilus() {
pkgdesc+=' (Nautilus filemanager plugin)'
- depends=('gtkhash' 'nautilus')
+ depends=(
+ 'gtkhash'
+ 'nautilus'
+)
make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
# remove other filemanager plugins
rm -rf "$pkgdir"/usr/lib/{thunarx-{2,3},caja,nemo}
}
-package_gtkhash-thunar() {
- pkgdesc+=' (Thunar filemanager plugin)'
- depends=('gtkhash' 'thunar')
+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/{nautilus,caja,nemo}
+ rm -rf "$pkgdir"/usr/lib/{thunarx-{2,3},nautilus,caja}
}
-package_gtkhash-caja() {
- pkgdesc+=' (Caja filemanager plugin)'
- depends=('gtkhash' 'caja')
+package_gtkhash-peony() {
+ pkgdesc+=' (Peony filemanager plugin)'
+ depends=(
+ 'gtkhash'
+ 'peony'
+)
make -C gtkhash-$pkgver/src/nautilus DESTDIR="$pkgdir/" install
# remove other filemanager plugins
- rm -rf "$pkgdir"/usr/lib/{thunarx-{2,3},nautilus,nemo}
+ rm -rf "$pkgdir"/usr/lib/{thunarx-{2,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}
}