summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f036f1d9eb30baf94eb83a194c326d09e008f4f (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
# Maintainer: Davide Depau <davide@depau.eu>

_pkgname='python-fastecdsa'
pkgname="${_pkgname}-1.7.4"
pkgver=1.7.4.r0.g5fa0163
pkgrel=1
pkgdesc='Python library for fast elliptic curve crypto (v1.7.4)'
arch=('x86_64')  # Please let me know if it works on other archs
url='https://github.com/AntonKueltz/fastecdsa'
license=('custom:Unlicense')
depends=('python' 'gmp')
makedepends=('python-setuptools')
provides=("$_pkgname=1.7.4")
conflicts=("$_pkgname")
source=("$_pkgname::git+https://github.com/AntonKueltz/fastecdsa.git#tag=v1.7.4") 
sha256sums=('SKIP')

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

build() {
	cd "$_pkgname"
	python setup.py build
}

package() {
	cd "$_pkgname"
	python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}