#Packager: George Vlahavas pkgname=gtkhash pkgver=0.6.0 pkgrel=1gv source=("https://downloads.sourceforge.net/project/gtkhash/gtkhash/$pkgver/gtkhash-$pkgver.tar.gz" "gtkhash.png" "gtkhash.desktop") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://gtkhash.sourceforge.net/ doinst() { # compile schemas if [ -x usr/bin/glib-compile-schemas ]; then usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "gtkhash (A utility for computing checksums)" "GtkHash is a GTK+ utility for computing message digests or checksums." "Currently supported hash functions include MD5, MD6, SHA1, SHA256," "SHA512, RIPEMD, TIGER and WHIRLPOOL." ) build() { cd $startdir/src/$pkgname-$pkgver ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --disable-static \ --with-gtk=2.0 \ --enable-gcrypt \ --enable-libcrypto \ --enable-linux-crypto \ --disable-schemas-compile \ --build=$arch-slackware-linux make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps cp $startdir/src/gtkhash.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps mkdir -p $startdir/pkg/usr/share/applications cp $startdir/src/gtkhash.desktop $startdir/pkg/usr/share/applications/ }