mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
0af05b343a
renamed checksums to kdeapps.sums added for all packages the pgp signature for new/removed packages check: https://community.kde.org/Applications/16.12_Release_Notes#Tarballs_that_we_have_split
34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
pkgbase=python-ecdsa
|
|
pkgname=('python3-ecdsa' 'python2-ecdsa')
|
|
pkgver=0.13
|
|
pkgrel=2
|
|
pkgdesc="Implementation of ECDSA in Python"
|
|
arch=('any')
|
|
url="https://github.com/warner/python-ecdsa"
|
|
license=('MIT')
|
|
makedepends=('python3-setuptools' 'python2-setuptools')
|
|
options=(!emptydirs)
|
|
source=("http://pypi.python.org/packages/source/e/ecdsa/ecdsa-$pkgver.tar.gz" "LICENSE")
|
|
sha256sums=('64cf1ee26d1cde3c73c6d7d107f835fed7c6a2904aef9eac223d57ad800c43fa'
|
|
'3eca9845773d2e5b8cc9d8c119d345f00a4806e4bd660d4a3d6cdf9c0e9d8bb2')
|
|
|
|
build() {
|
|
cp -R "$srcdir/ecdsa-$pkgver" "$srcdir/ecdsa-$pkgver-py2"
|
|
cd "$srcdir/ecdsa-$pkgver-py2"
|
|
sed -ie 's#/usr/bin/env python#/usr/bin/env python2#' ecdsa/*.py
|
|
}
|
|
|
|
package_python3-ecdsa() {
|
|
depends=('python')
|
|
cd "$srcdir/ecdsa-$pkgver"
|
|
python3 setup.py install --root="$pkgdir/" --optimize=1
|
|
install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
package_python2-ecdsa() {
|
|
depends=('python2')
|
|
cd "$srcdir/ecdsa-$pkgver-py2"
|
|
python2 setup.py install --root="$pkgdir/" --optimize=1
|
|
install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|