blob: 4aae383ee8c3279e91612c008a3a6c42fa5bed87 (
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
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Masato TOYOSHIMA <phoepsilonix@phoepsilonix.love>
pkgname=libaegis
pkgver=0.4.0
pkgrel=1
pkgdesc="Portable C implementations of the AEGIS family of high-performance authenticated encryption algorithms. "
arch=('i686' 'x86_64' 'aarch64')
makedepends=('cmake')
url="https://github.com/aegis-aead/libaegis.git"
license=('MIT')
options=('!lto')
_commit=44d313e6980b44f553f731d9311527b0ba1b18cb
source=("git+https://github.com/aegis-aead/libaegis.git#commit=${_commit}?signed/")
# mruby-Rakefile.patch
# h2o-libressl-3.6.2.patch
sha256sums=('63f13868fa428663715a295c76f3f872bcc483377ce0f07996d63cd9a88bd58c')
provides=('libaegis')
conflicts=('libaegis')
pkgver() {
cd "$srcdir/$pkgname"
git describe --tags | sed -e 's/^v//g' -e 's/-g.*$//g' -e 's/-.*//g'
}
build() {
cd "$srcdir/$pkgname"
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/ \
-DCMAKE_C_FLAGS="$CFLAGS -DFAVOR_PERFORMANCE" \
..
cmake --build . -j
}
package() {
cd "$srcdir/$pkgname"
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd build
DESTDIR="$pkgdir" cmake --install .
}
|