* add libdecaf

This commit is contained in:
Alexander Baldeck 2024-10-14 14:38:30 +02:00
parent 6ccdd99886
commit f44e8692e5
2 changed files with 53 additions and 0 deletions

19
libdecaf/.SRCINFO Normal file
View File

@ -0,0 +1,19 @@
pkgbase = libdecaf
pkgdesc = A 448-bit Edwards curve
pkgver = 1.0.2
pkgrel = 2
url = https://sourceforge.net/projects/ed448goldilocks/
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = MIT
makedepends = cmake
makedepends = git
makedepends = python
depends = glibc
source = libdecaf-1.0.2::git://git.code.sf.net/p/ed448goldilocks/code#commit=347057
sha256sums = SKIP
pkgname = libdecaf

34
libdecaf/PKGBUILD Normal file
View File

@ -0,0 +1,34 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname='libdecaf'
pkgver='1.0.2'
pkgrel=2
pkgdesc="A 448-bit Edwards curve"
url="https://sourceforge.net/projects/ed448goldilocks/"
depends=('glibc')
makedepends=('cmake' 'git' 'python')
license=('MIT')
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
source=("libdecaf-1.0.2::git://git.code.sf.net/p/ed448goldilocks/code#commit=347057")
sha256sums=('SKIP')
build() {
cmake -B build -S "${pkgname}-${pkgver}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DENABLE_STATIC=OFF \
-DENABLE_TESTS=ON \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_C_FLAGS="-Wno-sizeof-array-div -Wno-array-parameter" \
-Wno-dev
make -C build
}
package() {
make DESTDIR="${pkgdir}" -C build install
install -D -m644 "${pkgname}-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE.txt"
}
check() {
make -C build test
}