[arch-commits] Commit in python-pbkdf2/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 20:12:28 UTC 2019
Date: Friday, October 25, 2019 @ 20:12:28
Author: felixonmars
Revision: 519790
archrelease: copy trunk to community-staging-any
Added:
python-pbkdf2/repos/community-staging-any/
python-pbkdf2/repos/community-staging-any/PKGBUILD
(from rev 519789, python-pbkdf2/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-pbkdf2/repos/community-staging-any/PKGBUILD (from rev 519789, python-pbkdf2/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 20:12:28 UTC (rev 519790)
@@ -0,0 +1,41 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Hilton Medeiros <medeiros.hilton at gmail.com>
+
+pkgname=python-pbkdf2
+pkgver=1.3
+pkgrel=5
+pkgdesc='Password-based key derivation function PBKDF2'
+url='https://www.dlitz.net/software/python-pbkdf2/'
+arch=('any')
+license=('MIT')
+makedepends=('python' 'python-setuptools' 'python-crypto')
+depends=('python')
+checkdepends=('python-pytest')
+optdepends=('python-crypto: to make use of PyCrypto`s HMAC and SHA')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/dlitz/python-pbkdf2/archive/v${pkgver}.tar.gz)
+sha256sums=('f35d36855c082c9cc258da555ea513c800b125c6b5f2fbf9cc4a45655579de5c')
+sha512sums=('642372615a2ffc9cf352805789f836c42763c49cbf113d64524a55c6ff8a09f0fda36c92713387f27c2f6a2950ce89ae04dc9f92495cba904400685b148f947e')
+
+build() {
+ msg2 "Building python..."
+ (cd ${pkgbase}-${pkgver}
+ python setup.py build
+ )
+}
+
+check() {
+ msg2 "Checking python..."
+ (cd ${pkgbase}-${pkgver}
+ py.test
+ )
+}
+
+package() {
+ cd ${pkgbase}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" -O1 --skip-build
+ install -Dm 644 README.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 README.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list