commit 77de5f2528847d518f908fb8404e06b82856b42f Author: Sebastian Hugentobler Date: Thu Jun 22 09:48:52 2023 +0200 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..765efc1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*~ +.DS_Store +*.pkg.tar.zst +*.pkg.tar.zst.sig diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..bcd4ca5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Sebastian Hugentobler +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 +}