initial commit

This commit is contained in:
Sebastian Hugentobler 2023-06-22 09:48:52 +02:00
commit 77de5f2528
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
2 changed files with 26 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*~
.DS_Store
*.pkg.tar.zst
*.pkg.tar.zst.sig

22
PKGBUILD Normal file
View File

@ -0,0 +1,22 @@
# Maintainer: Sebastian Hugentobler <shu@vanwa.ch>
pkgname=python-otppy
_gitpkgname=OTPpy
pkgver=0.1.2
pkgrel=1
pkgdesc="OTP library for Python3: HOTP and TOTP ( RFC4226 & RFC6238)."
arch=("any")
url="https://github.com/bitlogik/OTPpy"
license=("GPL3")
makedepends=("python-setuptools")
source=("https://github.com/bitlogik/OTPpy/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('3d34d94ffde40e40a5ecde25209ecd6686522d04c4e4cf6c81aa50f5c17f29d2')
build() {
cd "$_gitpkgname-$pkgver"
python setup.py build
}
package() {
cd "$_gitpkgname-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
}