summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8deb6126851b9f76c09c56ee418531c37272b17c (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: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
# Contributor: David Wu <xdavidwuph@gmail.com>
pkgname=intel-ipsec-mb
pkgver=2.0
pkgrel=1
pkgdesc="Intel(R) Multi-Buffer Crypto for IPsec Library"
url=https://github.com/intel/intel-ipsec-mb
arch=(x86_64)
license=(BSD-3-Clause)
depends=(glibc)
makedepends=(
    cmake
    nasm
)
source=($pkgname-$pkgver.tar.gz::https://github.com/intel/intel-ipsec-mb/archive/v$pkgver.tar.gz)
b2sums=('c806a50ed5c8aa52cca6207035f2ce7c77780a631192236f3d1b838de11363e352e1ae7e5029e40f140144278860dcb5aaf0782f82c9ff5277228332d555b38c')

build() {
    cmake -B build -S "$pkgname-$pkgver" -DCMAKE_INSTALL_PREFIX=/usr
    cmake --build build
}

check() {
    ctest --test-dir build --output-on-failure -j $(nproc)
}

package() {
    DESTDIR="$pkgdir" cmake --install build
    install -Dm644 $pkgname-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}