diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/gtkhash/README | 6 | ||||
-rw-r--r-- | desktop/gtkhash/README.Slackware | 23 | ||||
-rw-r--r-- | desktop/gtkhash/doinst.sh | 10 | ||||
-rw-r--r-- | desktop/gtkhash/gtkhash.SlackBuild | 31 | ||||
-rw-r--r-- | desktop/gtkhash/gtkhash.info | 8 | ||||
-rw-r--r-- | desktop/gtkhash/slack-desc | 6 |
6 files changed, 54 insertions, 30 deletions
diff --git a/desktop/gtkhash/README b/desktop/gtkhash/README index d90d199e28af6..b3474c3dc92d0 100644 --- a/desktop/gtkhash/README +++ b/desktop/gtkhash/README @@ -1,4 +1,4 @@ -GtkHash is a GTK+ utility for computing message digests or checksums. +GtkHash is a desktop utility for computing message digests or checksums. -Currently supported hash functions include MD5, MD6, SHA1, SHA256, -SHA512, RIPEMD, TIGER and WHIRLPOOL. +Most well-known hash functions are supported, including MD5, SHA1, SHA2 + and SHA3. diff --git a/desktop/gtkhash/README.Slackware b/desktop/gtkhash/README.Slackware index 41ac52a917708..27bb8d5744687 100644 --- a/desktop/gtkhash/README.Slackware +++ b/desktop/gtkhash/README.Slackware @@ -2,14 +2,13 @@ Configure Options: Many configure options are given in the configure.ac file in the source, some of which are: ---enable-debug ---enable-linux-crypto ---enable-gcrypt ---enable-libcrypto ---enable-polarssl + +--enable-mbedtls +--enable-mhash --enable-nettle --enable-nss ---enable-mhash +--enable-polarssl +--enable-caja --enable-nautilus --enable-nemo --enable-thunar @@ -17,12 +16,20 @@ some of which are: The above configuration options are present in the SlackBuild and commented out; users can enable them according to their needs. +Note: + +If using Thunar one can run the script like + +./THUNAR=yes gtkhash.SlackBuild + +to enable the GtkHash Thunar extension. + Using with Thunar: Thunar's Custom Action feature can be used (Thunar -> Edit -> Configure -Custom Action) to create a custom action in the menu for checking the md5sum. + Custom Action) to create a custom action in the menu for checking the md5sum. -I used the following values: +Sample values: (Basic Tab) Name: Check md5sum diff --git a/desktop/gtkhash/doinst.sh b/desktop/gtkhash/doinst.sh index 6922dbb756df8..0254ea06d8788 100644 --- a/desktop/gtkhash/doinst.sh +++ b/desktop/gtkhash/doinst.sh @@ -1,3 +1,13 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + if [ -e usr/share/glib-2.0/schemas ]; then if [ -x /usr/bin/glib-compile-schemas ]; then /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1 diff --git a/desktop/gtkhash/gtkhash.SlackBuild b/desktop/gtkhash/gtkhash.SlackBuild index e44dfe25816e8..f732da7a0ef52 100644 --- a/desktop/gtkhash/gtkhash.SlackBuild +++ b/desktop/gtkhash/gtkhash.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for GtkHash -# Copyright 2014-2015 Aaditya Bagga <aaditya_gnulinux@zoho.com> +# Copyright 2014-2016 Aaditya Bagga <aaditya_gnulinux@zoho.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=gtkhash -VERSION=${VERSION:-0.7.0} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.0} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -69,6 +69,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# cmd line args +thunar_params="" ; [ "${THUNAR:-no}" != "no" ] && thunar_params="--enable-thunar" + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -77,16 +80,18 @@ CXXFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --build=$ARCH-slackware-linux \ -# --enable-linux-crypto \ -# --enable-libcrypto \ -# --enable-thunar \ -# --enable-gcrypt \ -# --enable-debug \ -# --enable-nautilus \ -# --enable-nemo \ -# --enable-polarssl \ + --enable-linux-crypto \ + --enable-gcrypt \ + $thunar_params \ +# --enable-mbedtls \ +# --enable-mhash \ # --enable-nettle \ # --enable-nss \ +# --enable-polarssl \ +# --enable-caja +# --enable-nautilus \ +# --enable-nemo \ +# --enable-debug \ make make install DESTDIR=$PKG @@ -95,7 +100,9 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING ChangeLog INSTALL NEWS README.md TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/desktop/gtkhash/gtkhash.info b/desktop/gtkhash/gtkhash.info index 194d4fce019ad..11d4683732a07 100644 --- a/desktop/gtkhash/gtkhash.info +++ b/desktop/gtkhash/gtkhash.info @@ -1,8 +1,8 @@ PRGNAM="gtkhash" -VERSION="0.7.0" -HOMEPAGE="http://gtkhash.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/project/gtkhash/gtkhash/0.7.0/gtkhash-0.7.0.tar.gz" -MD5SUM="5c48c5e55a6ee308bcc909bfb3e35752" +VERSION="1.0" +HOMEPAGE="https://github.com/tristanheaven/gtkhash" +DOWNLOAD="https://github.com/tristanheaven/gtkhash/releases/download/v1.0/gtkhash-1.0.tar.gz" +MD5SUM="2aba3422dd78b4c571d3a300abbba9ee" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/desktop/gtkhash/slack-desc b/desktop/gtkhash/slack-desc index ff606a8ac0873..1e2137b56d0dc 100644 --- a/desktop/gtkhash/slack-desc +++ b/desktop/gtkhash/slack-desc @@ -8,11 +8,11 @@ |-----handy-ruler------------------------------------------------------| gtkhash: gtkhash (utility for computing message digests or checksums) gtkhash: -gtkhash: GtkHash is a GTK+ utility for computing message digests +gtkhash: GtkHash is a desktop utility for computing message digests gtkhash: or checksums. gtkhash: -gtkhash: Currently supported hash functions include MD5, MD6, -gtkhash: SHA1, SHA256, SHA512, RIPEMD, TIGER and WHIRLPOOL. +gtkhash: Most well-known hash functions are supported, +gtkhash: including MD5, SHA1, SHA2 and SHA3. gtkhash: gtkhash: Homepage: http://gtkhash.sourceforge.net/ gtkhash: |