summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmin Pandžić2019-12-04 20:14:17 +0500
committerEmin Pandžić2019-12-04 20:14:17 +0500
commit65c6ac02449512ad99e131ea2e846447dad758f1 (patch)
treed7fd3b8f52a7cccab01be94f5f17b3061aeaaff3
downloadaur-65c6ac02449512ad99e131ea2e846447dad758f1.tar.gz
PKGBUILD and .SRCINFO for liboqs-git
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD41
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e42aec171bb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = liboqs-git
+ pkgdesc = C library for quantum-safe cryptography.
+ pkgver = 0.2.0.r18.gb4b26228
+ pkgrel = 1
+ url = https://github.com/open-quantum-safe/liboqs
+ arch = any
+ license = MIT
+ makedepends = git
+ makedepends = autoconf
+ makedepends = automake
+ makedepends = libtool
+ makedepends = gcc
+ makedepends = openssl
+ makedepends = python-pytest
+ makedepends = unzip
+ makedepends = libxslt
+ makedepends = doxygen
+ makedepends = graphviz
+ provides = liboqs
+ conflicts = liboqs
+ source = git+https://github.com/open-quantum-safe/liboqs.git
+ md5sums = SKIP
+
+pkgname = liboqs-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..86dc38bb742
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Emin Pandžić <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
+}