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

_pkgname='python-fastecdsa'
pkgname="${_pkgname}-git"
pkgver=2.1.2.r1.g4a16dae
pkgrel=1
pkgdesc='Python library for fast elliptic curve crypto'
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")
source=("$_pkgname::git+https://github.com/AntonKueltz/fastecdsa.git") 
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"
}