summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e80fef47d37c2700d367a46b3a828775ab683df8 (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
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname='libdecaf'
pkgver='1.0.1'
pkgrel=3
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.1::git+git://git.code.sf.net/p/ed448goldilocks/code#commit=41f349")
sha256sums=('SKIP')

build() {
    cmake -B build "${pkgname}-${pkgver}" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DENABLE_STATIC=OFF \
    -DENABLE_TESTS=ON \
    -DCMAKE_C_FLAGS="-Wno-sizeof-array-div -Wno-array-parameter" ..
    make -C build
}

package() {
    make DESTDIR="${pkgdir}" -C build install
}

check() {
    make -C build test
}