summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime “pep” Buquet2018-09-23 19:29:11 +0100
committerMaxime “pep” Buquet2018-09-23 19:29:11 +0100
commit4f146b5c2a129b0a6218d555dbece9a5f5e5db59 (patch)
treea4b430603e2a1c17e4605eba3bf5bae5834b6050
parent0a5c17a498877aef6dfcdca3cfdcd135fb463680 (diff)
downloadaur-python-xeddsa-git.tar.gz
Upstream now uses cmake (thanks jnanar)
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD18
2 files changed, 10 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8f91c8ca8ad..4861de2f213 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,13 @@
pkgbase = python-xeddsa-git
pkgdesc = A python implementation of the XEdDSA signature scheme
- pkgver = r37.d0f7eef
- pkgrel = 3
+ pkgver = r55.6206921
+ pkgrel = 1
url = https://github.com/Syndace/python-xeddsa
arch = any
license = MIT
makedepends = python-setuptools
makedepends = python2-setuptools
+ makedepends = cmake
makedepends = libsodium
source = python-xeddsa::git+https://github.com/Syndace/python-xeddsa.git
sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index f63ea11fb34..5ecba59c408 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,13 +4,13 @@ _pkgname=python-xeddsa
_pkgname2=python2-xeddsa
pkgbase=${_pkgname}-git
pkgname=("${_pkgname}-git" "${_pkgname2}-git" "${_pkgname}-ref10-git")
-pkgver=r37.d0f7eef
-pkgrel=3
+pkgver=r55.6206921
+pkgrel=1
pkgdesc="A python implementation of the XEdDSA signature scheme"
url='https://github.com/Syndace/python-xeddsa'
license=('MIT')
arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'libsodium')
+makedepends=('python-setuptools' 'python2-setuptools' 'cmake' 'libsodium')
source=("${_pkgname}::git+https://github.com/Syndace/python-xeddsa.git")
sha256sums=('SKIP')
@@ -19,22 +19,18 @@ pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
-prepare() {
- cd "${_pkgname}/ref10"
- sed -i -e 's,usr/local/include,usr/include,' Makefile
-}
-
build() {
cd "${_pkgname}/ref10"
- make
+ mkdir -p build && cd build
+ cmake ..
}
package_python-xeddsa-ref10-git() {
cd ${_pkgname}
install -m755 -d "${pkgdir}/usr/lib"
install -Dm 644 \
- ref10/bin/dynamic/libcrypto_scalarmult.so \
- ref10/bin/dynamic/libcrypto_sign.so \
+ ref10/bin/libcrypto_scalarmult_dynamic.so \
+ ref10/bin/libcrypto_sign_dynamic.so \
"${pkgdir}/usr/lib"
}