blob: e581f3d88809463814ec252328305c0804d1a9b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# 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')
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
}
|