diff options
Diffstat (limited to 'main/py-oauthlib')
-rw-r--r-- | main/py-oauthlib/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/main/py-oauthlib/APKBUILD b/main/py-oauthlib/APKBUILD new file mode 100644 index 000000000..d31f35838 --- /dev/null +++ b/main/py-oauthlib/APKBUILD @@ -0,0 +1,40 @@ +# Maintainer: Eivind Uggedal <eivind@uggedal.com> +pkgname=py-oauthlib +_pkgname=${pkgname#py-} +pkgver=0.6.1 +pkgrel=0 +pkgdesc="A Python implementation of the OAuth request-signing logic" +url="https://github.com/idan/oauthlib" +arch="noarch" +license="BSD" +depends="python py-crypto" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="18f8524c85606380c1ef8a7ff50d69cc oauthlib-0.6.1.tar.gz" +sha256sums="3850fbe9cd9a9a8f82b3ed79a5948aa9f46d6f4405eacbc6bafb74e9f755c8ee oauthlib-0.6.1.tar.gz" +sha512sums="862a65e604c0e031eb840e276ce59171cb5daa7165c8bc60d31b5e7583aab86f533ee9da9a5062c6f8a48a9b5e14df094415f3ad76329cbc89ec7534a3aa2c8e oauthlib-0.6.1.tar.gz" |