blob: 1a7312efbc381f433382d2aa61bbfa92b2999e74 (
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
|
# Maintainer: Maxime "pep" Buquet <archlinux@bouah.net>
_pkgname=python-xeddsa
pkgbase=${_pkgname}-git
pkgname=${pkgbase}
pkgver=r75.5b6b93b
pkgrel=2
pkgdesc="A python implementation of the XEdDSA signature scheme"
url='https://github.com/Syndace/python-xeddsa'
license=('MIT')
arch=('any')
makedepends=('git' 'python-setuptools' 'cmake' 'libsodium')
depends=('glibc' 'python-libnacl' 'python-pynacl')
source=("${_pkgname}::git+https://github.com/Syndace/python-xeddsa.git")
sha256sums=('SKIP')
conflicts=(${_pkgname})
provides=(${_pkgname})
pkgver() {
cd ${_pkgname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ${_pkgname}
python3 setup.py build
cd ref10
mkdir -p build && cd build
cmake ..
}
package() {
cd ${_pkgname}
python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -m755 -d "${pkgdir}/usr/lib"
install -Dm 644 \
ref10/bin/libcrypto_scalarmult_dynamic.so \
ref10/bin/libcrypto_sign_dynamic.so \
"${pkgdir}/usr/lib"
}
|