summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43581766a4e860f8491e600ed6545c0e036da369 (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
# Maintainer: Nicole Watterson <poisonimy at protonmail dot com>
pkgname=liboqs-git
pkgver=0.2.0.r18.gb4b26228
pkgrel=1
pkgdesc="C library for quantum-safe cryptography."
arch=('any')
url="https://github.com/open-quantum-safe/liboqs"
license=('MIT')
groups=()
depends=()
makedepends=('git' 'autoconf' 'automake' 'libtool' 'gcc' 'openssl' 'python-pytest' 'unzip' 'libxslt' 'doxygen' 'graphviz')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/open-quantum-safe/liboqs.git')
noextract=()
md5sums=('SKIP')

# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$srcdir/${pkgname%-git}"
    autoreconf -i
    ./configure
    make clean
    make -j
}

package() {
    cd "$srcdir/${pkgname%-git}"
    make DESTDIR="$pkgdir/" install
}