summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD40
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e79057bd4bd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = libeddsa-git
+ pkgdesc = cryptographic library for ed25519 and x25519
+ pkgver = 0.6
+ pkgrel = 1
+ url = https://github.com/phlay/libeddsa
+ arch = i686
+ arch = x86_64
+ license = public-domain
+ makedepends = cmake
+ provides = libeddsa
+ source = git+https://github.com/phlay/libeddsa.git
+ md5sums = SKIP
+
+pkgname = libeddsa-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..37b0a25fdf7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Philipp Lay <libeddsa@phlay.de>
+pkgname=libeddsa-git
+pkgver=0.6
+pkgrel=1
+pkgdesc="cryptographic library for ed25519 and x25519"
+arch=('i686' 'x86_64')
+url="https://github.com/phlay/libeddsa"
+license=('public-domain')
+depends=()
+optdepends=()
+makedepends=('cmake')
+provides=('libeddsa')
+conflicts=()
+replaces=()
+source=('git+https://github.com/phlay/libeddsa.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/libeddsa"
+ MAJOR=$(egrep -o "EDDSA_VERSION_MAJOR [[:digit:]]+" CMakeLists.txt | cut -f2 -d' ')
+ MINOR=$(egrep -o "EDDSA_VERSION_MINOR [[:digit:]]+" CMakeLists.txt | cut -f2 -d' ')
+ echo "$MAJOR.$MINOR"
+}
+
+build() {
+ mkdir "$srcdir/build"
+ cd "$srcdir/build"
+ cmake "$srcdir/libeddsa" -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+check() {
+ cd "$srcdir/build"
+ ctest
+}
+
+package() {
+ cd "$srcdir/build"
+ make DESTDIR="$pkgdir" install
+}