mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 05:47:21 +08:00
python-ecdsa: imported as new dep of mysql-workbench
This commit is contained in:
parent
6ccd7371bf
commit
6e8b0052fa
24
python-ecdsa/LICENSE
Normal file
24
python-ecdsa/LICENSE
Normal file
@ -0,0 +1,24 @@
|
||||
"python-ecdsa" Copyright (c) 2010 Brian Warner
|
||||
|
||||
Portions written in 2005 by Peter Pearson and placed in the public domain.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
files (the "Software"), to deal in the Software without
|
||||
restriction, including without limitation the rights to use,
|
||||
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
34
python-ecdsa/PKGBUILD
Normal file
34
python-ecdsa/PKGBUILD
Normal file
@ -0,0 +1,34 @@
|
||||
pkgbase=python-ecdsa
|
||||
pkgname=('python3-ecdsa' 'python2-ecdsa')
|
||||
pkgver=0.13
|
||||
pkgrel=1
|
||||
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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user