mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/libmhash: fix casing in license expression and fix build
This commit is contained in:
parent
2be7cf9357
commit
bdbb8a0811
@ -2,25 +2,26 @@
|
||||
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
||||
pkgname=libmhash
|
||||
pkgver=0.9.9.9
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="Library which provides a uniform interface to a large number of hash algorithms"
|
||||
url="https://mhash.sourceforge.net/"
|
||||
arch="all"
|
||||
license="LGPL-2.0-only and LGPL-2.1-or-later"
|
||||
license="LGPL-2.0-only AND LGPL-2.1-or-later"
|
||||
subpackages="$pkgname-dev $pkgname-doc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://downloads.sourceforge.net/project/mhash/mhash/$pkgver/mhash-$pkgver.tar.gz
|
||||
musl-fix-bool-includes.patch
|
||||
libmhash-prototypes.patch
|
||||
"
|
||||
builddir="$srcdir/mhash-$pkgver"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
|
||||
update_config_sub
|
||||
update_config_guess
|
||||
}
|
||||
|
||||
build() {
|
||||
export CFLAGS="$CFLAGS -UEMPTY_PROTOTYPES -Wno-pointer-to-int-cast"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
@ -32,4 +33,5 @@ package() {
|
||||
sha512sums="
|
||||
82ad8b8e9b0463c5a14f5c0e572badc42c4697bac5505443b144287b3f8510b1410721b4277f092a0d6045c4342e997831011cdfcbfa8f1dae6edd5d9e3cefee libmhash-0.9.9.9.tar.gz
|
||||
848c687be7da956884b287ecf57d445c974db9421d1e3a6648837aa18ebe86ace1366e0863ba62a898010b56c85ffd2f8294aaa7744ed31cfcec67b0021cc731 musl-fix-bool-includes.patch
|
||||
8b54051cfdd79fa726d564a7e99ef1865b88edc33b7625587cdfbe18a7e1d95adbc578413c36170d13fafb726f07ca1d4d283553832a8d69233b1bcc846aa8e6 libmhash-prototypes.patch
|
||||
"
|
||||
|
||||
13
testing/libmhash/libmhash-prototypes.patch
Normal file
13
testing/libmhash/libmhash-prototypes.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/lib/mhash_int.h b/lib/mhash_int.h
|
||||
index c1ed1c9..6fe92a6 100644
|
||||
--- a/lib/mhash_int.h
|
||||
+++ b/lib/mhash_int.h
|
||||
@@ -36,7 +36,7 @@ void *hmac_mhash_end(MHASH thread);
|
||||
|
||||
/* Key generation functions */
|
||||
|
||||
-#define EMPTY_PROTOTYPES 1
|
||||
+#undef EMPTY_PROTOTYPES
|
||||
|
||||
#if defined(EMPTY_PROTOTYPES)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user