# Contributor: Carlo Landmeter # Maintainer: setvar pkgname = 'mhash' setvar pkgver = '0.9.9.9' setvar pkgrel = '1' setvar pkgdesc = ""A thread-safe hash library which provides a uniform interface to hash algorithms (MD5, SHA-1, HAVAL, etc"" setvar url = ""http://mhash.sourceforge.net/"" setvar arch = ""all"" setvar license = ""LGPL"" setvar depends = '' setvar depends_dev = '' setvar makedepends = "$depends_dev" setvar install = """" setvar subpackages = ""$pkgname-dev $pkgname-doc"" setvar source = ""http://downloads.sourceforge.net/sourceforge/mhash/$pkgname-$pkgver.tar.bz2"" setvar _builddir = ""$srcdir/$pkgname-$pkgver"" proc prepare { local i cd $_builddir for i in $source { case (i) { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc build { cd $_builddir ./configure --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info make || return 1 } proc package { cd $_builddir make DESTDIR="$pkgdir" install || return 1 } setvar md5sums = ""f91c74f9ccab2b574a98be5bc31eb280 mhash-0.9.9.9.tar.bz2""