# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
setvar pkgname = 'libmhash'
setvar _pkgname = 'mhash'
setvar pkgver = '0.9.9.9'
setvar pkgrel = '1'
setvar pkgdesc = ""Library which provides a uniform interface to a large number of hash algorithms""
setvar url = ""http://mhash.sourceforge.net/""
setvar arch = ""all""
setvar license = ""GPL""
setvar depends = """"
setvar makedepends = """"
setvar install = """"
setvar subpackages = ""$pkgname-dev $pkgname-doc""
setvar source = ""$pkgname-$pkgver.tar.gz::https://downloads.sourceforge.net/project/$_pkgname/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.gz
musl-fix-bool-includes.patch""
setvar builddir = ""$srcdir"/$_pkgname-$pkgver"

proc prepare {
	default_prepare || return 1
	update_config_guess || return 1
}

proc build {
	cd $builddir
	./configure --prefix=/usr
	make || return 1
}

proc package {
	cd $builddir
	make DESTDIR="$pkgdir" install || return 1
}

setvar md5sums = ""ee66b7d5947deb760aeff3f028e27d25  libmhash-0.9.9.9.tar.gz
430f0e1e56344d71effd49dc493c67ac  musl-fix-bool-includes.patch""
setvar sha256sums = ""3dcad09a63b6f1f634e64168dd398e9feb9925560f9b671ce52283a79604d13e  libmhash-0.9.9.9.tar.gz
38be515c882560d714ea6c7ba7dd258d38feb4aaeb2d06743893736d78d51b50  musl-fix-bool-includes.patch""
setvar sha512sums = ""82ad8b8e9b0463c5a14f5c0e572badc42c4697bac5505443b144287b3f8510b1410721b4277f092a0d6045c4342e997831011cdfcbfa8f1dae6edd5d9e3cefee  libmhash-0.9.9.9.tar.gz
848c687be7da956884b287ecf57d445c974db9421d1e3a6648837aa18ebe86ace1366e0863ba62a898010b56c85ffd2f8294aaa7744ed31cfcec67b0021cc731  musl-fix-bool-includes.patch""