From f1c7637bb12ca161d237c41f72d69267848500b8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 5 Sep 2024 20:26:49 +0200 Subject: Add libhashsum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libhashsum/PKGBUILD | 29 +++++++++++++++++++++++++++++ libhashsum/upload | 1 + 2 files changed, 30 insertions(+) create mode 100644 libhashsum/PKGBUILD create mode 120000 libhashsum/upload diff --git a/libhashsum/PKGBUILD b/libhashsum/PKGBUILD new file mode 100644 index 0000000..a153671 --- /dev/null +++ b/libhashsum/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se> + +pkgname=libhashsum +pkgver=1.0 +pkgrel=1 +pkgdesc="Library for calculating the cryptographic hashes" +arch=(i686 x86_64) +url="https://codeberg.org/maandree/libhashsum" +license=('custom:ISC') +depends=(libsha1 libsha2 'libkeccak>=1.3' 'libblake>=3.0') +checkdepends=() +makedepends=() +source=(libhashsum-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz) +sha256sums=(3461a56113f9a56662243f5b92a22cad4b17c20f8e2b6395711806115b29ddfb) + +build() { + cd "$srcdir/$pkgname" + make PREFIX=/usr +} + +check() { + cd "$srcdir/$pkgname" + make check +} + +package() { + cd "$srcdir/$pkgname" + make PREFIX=/usr DESTDIR="$pkgdir" install +} diff --git a/libhashsum/upload b/libhashsum/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/libhashsum/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file -- cgit v1.2.3-70-g09d2