aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-twitter
diff options
context:
space:
mode:
authorPeter Bui <pnutzh4x0r@gmail.com>2014-12-24 01:39:48 -0600
committerNatanael Copa <ncopa@alpinelinux.org>2014-12-29 15:59:04 +0000
commit8f95a3aa63ad4d0d3c2162e0500bc2a696f62312 (patch)
tree15181e6bb8cfc8a5cd3e9fe82a2ffadc42a274d1 /testing/py-twitter
parent485b1fe88d6d0a61654e1747b12446d8dd71908e (diff)
downloadaports-8f95a3aa63ad4d0d3c2162e0500bc2a696f62312.tar.bz2
aports-8f95a3aa63ad4d0d3c2162e0500bc2a696f62312.tar.xz
testing/py-twitter: new aport
Diffstat (limited to 'testing/py-twitter')
-rw-r--r--testing/py-twitter/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-twitter/APKBUILD b/testing/py-twitter/APKBUILD
new file mode 100644
index 0000000000..deef2558dc
--- /dev/null
+++ b/testing/py-twitter/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
+# Maintainer:
+pkgname=py-twitter
+_pkgname=python-twitter
+pkgver=2.0
+pkgrel=0
+pkgdesc="Python wrapper around the Twitter API'"
+url="https://pypi.python.org/pypi/python-twitter"
+arch="noarch"
+license="Apache"
+depends="python py-httplib2 py-simplejson py-oauth2 py-requests-oauthlib"
+depends_dev="python-dev py-setuptools"
+makedepends="$depends_dev"
+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="a232cac55f121509da7fc2db15ef9614 python-twitter-2.0.tar.gz"
+sha256sums="abbcd9fc95f58f8ba7c0c122af2f6cf249e4e30ead755dab3c4f87afd7e1c8bc python-twitter-2.0.tar.gz"
+sha512sums="0966224f6b0cc2f1485568247a2cf2564f443cbb6fec3126bd1be5b513de0246ec16a2b70cc33a473b270c76f9f86463a6344b48173a49d3f5e71873ba3cd4e9 python-twitter-2.0.tar.gz"