This repository has been archived on 2023-02-07. You can view files and clone it, but cannot push or open issues or pull requests.
microsoft-seal/PKGBUILD

40 lines
1.1 KiB
Bash
Raw Normal View History

2021-01-17 13:50:20 +01:00
# Maintainer: ObserverOfTime <chronobserver@disroot.org>
# Based on sealcrypto
pkgname=microsoft-seal
2023-02-07 21:34:45 +01:00
pkgver=4.1.1
pkgrel=1
2021-01-17 13:50:20 +01:00
pkgdesc='Microsoft library for fully homomorphic encryption'
arch=('x86_64')
url="https://sealcrypto.org/"
license=('MIT')
2023-02-07 21:34:45 +01:00
makedepends=('clang' 'cmake' 'microsoft-gsl' 'zlib' 'zstd-static')
2021-01-17 13:50:20 +01:00
optdepends=(
2023-02-07 21:34:45 +01:00
'microsoft-gsl: API extensions'
'zlib: Compressed serialization'
'zstd: Faster compressed serialization'
2021-01-17 13:50:20 +01:00
)
conflicts=('sealcrypto')
provides=("sealcrypto=${pkgver}")
2021-03-07 12:17:27 +01:00
source=("SEAL-${pkgver}.tar.gz::https://github.com/microsoft/SEAL/archive/${pkgver}.tar.gz")
2023-02-07 21:34:45 +01:00
sha256sums=('af9bf0f0daccda2a8b7f344f13a5692e0ee6a45fea88478b2b90c35648bf2672')
2021-01-17 13:50:20 +01:00
build() {
cd SEAL-${pkgver}
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
2022-01-22 12:05:00 +01:00
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_C_COMPILER=clang \
2023-02-07 21:34:45 +01:00
-DSEAL_USE_MSGSL=ON \
2021-01-17 13:50:20 +01:00
-DSEAL_BUILD_DEPS=OFF .
cmake --build build
}
package() {
cd SEAL-${pkgver}
DESTDIR="${pkgdir}" cmake --install build
install -Dm644 LICENSE \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}