[arch-commits] Commit in python-argon2_cffi/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 18:18:30 UTC 2020
Date: Monday, November 9, 2020 @ 18:18:30
Author: foutrelis
Revision: 747955
archrelease: copy trunk to community-staging-x86_64
Added:
python-argon2_cffi/repos/community-staging-x86_64/
python-argon2_cffi/repos/community-staging-x86_64/PKGBUILD
(from rev 747953, python-argon2_cffi/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-argon2_cffi/repos/community-staging-x86_64/PKGBUILD (from rev 747953, python-argon2_cffi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-11-09 18:18:30 UTC (rev 747955)
@@ -0,0 +1,41 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+_pkgname=argon2_cffi
+pkgname=python-argon2_cffi
+pkgver=20.1.0
+pkgrel=2
+pkgdesc="CFFI-based Argon2 Bindings for Python"
+arch=('x86_64')
+url="https://github.com/hynek/argon2_cffi"
+license=('MIT')
+depends=(argon2 python-cffi python-six)
+makedepends=(git python-setuptools)
+_commit=b4a022c86db8acb06c789a39fad1c66c2428279e # tags/20.1.0^0
+source=("git+https://github.com/hynek/argon2_cffi#commit=$_commit"
+ "git+https://github.com/p-h-c/phc-winner-argon2")
+sha256sums=('SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd $_pkgname
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $_pkgname
+ git submodule init
+ git config --local submodule.extras/libargon2.url "$srcdir/phc-winner-argon2"
+ git submodule update
+ cd ..
+}
+
+build() {
+ cd $_pkgname
+ python3 setup.py build
+}
+
+package() {
+ cd $_pkgname
+ python3 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list