diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-10-06 20:49:23 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-22 08:23:15 +0000 |
commit | 64d4fd5f3c6179f1ea3dde0cb50bc4e658814017 (patch) | |
tree | 59016eb0a761824a4e23184ab689d2fbe31b9aa7 /testing | |
parent | b387fa5f3ad2afc9d4bd90c4e21ac5b2b8c8b66d (diff) | |
download | aports-64d4fd5f3c6179f1ea3dde0cb50bc4e658814017.tar.bz2 aports-64d4fd5f3c6179f1ea3dde0cb50bc4e658814017.tar.xz |
testing/py-thepiratebay: new aport
Python API for The Pirate Bay
https://github.com/thekarangoel/TPB
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-thepiratebay/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-thepiratebay/APKBUILD b/testing/py-thepiratebay/APKBUILD new file mode 100644 index 0000000000..b29903fac7 --- /dev/null +++ b/testing/py-thepiratebay/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-thepiratebay +_pkgname=ThePirateBay +pkgver=1.1.2 +pkgrel=0 +pkgdesc="Python API for The Pirate Bay" +url="https://github.com/thekarangoel/TPB" +arch="noarch" +license="MIT" +depends="python py-requests py-dateutils py-lxml py-purl" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip" + +_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="b02d0914df92878386d983aa5f923d85 ThePirateBay-1.1.2.zip" +sha256sums="9820f18e1e78887b5d7f604be1a3cfc75cde83926473666f57888ddedc92a4ff ThePirateBay-1.1.2.zip" +sha512sums="7515befbfba4280aa36e1733e9818d54f9a393a895e4b892b9b9801c85af92cb62f9f87d1c55535960bada03f60fb220d850b7f12a104008ef2e68574d32f8b1 ThePirateBay-1.1.2.zip" |