Date: Monday, November 25, 2013 @ 18:10:26
Author: fyan
Revision: 101441
archrelease: copy trunk to community-any
Added:
python2-poster/repos/community-any/
python2-poster/repos/community-any/LICENSE
(from rev 101440, python2-poster/trunk/LICENSE)
python2-poster/repos/community-any/PKGBUILD
(from rev 101440, python2-poster/trunk/PKGBUILD)
----------+
LICENSE | 7 +++++++
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+)
Copied: python2-poster/repos/community-any/LICENSE (from rev 101440,
python2-poster/trunk/LICENSE)
===================================================================
--- community-any/LICENSE (rev 0)
+++ community-any/LICENSE 2013-11-25 17:10:26 UTC (rev 101441)
@@ -0,0 +1,7 @@
+Copyright (c) 2011 Chris AtLee
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Copied: python2-poster/repos/community-any/PKGBUILD (from rev 101440,
python2-poster/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2013-11-25 17:10:26 UTC (rev 101441)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Thomas Jost <[email protected]>
+
+pkgname=python2-poster
+pkgver=0.8.1
+pkgrel=2
+pkgdesc="A set of classes and functions to faciliate making HTTP POST (or PUT)
requests using the standard multipart/form-data encoding in Python with urllib2"
+arch=(any)
+url="http://atlee.ca/software/poster/"
+license=('MIT')
+depends=('python2')
+makedepends=('python2-setuptools')
+source=("http://atlee.ca/software/poster/dist/$pkgver/poster-$pkgver.tar.gz"
+ "LICENSE")
+
+prepare() {
+ cd poster-$pkgver
+ find . -type f \( -name '*.py' -or -executable \) -exec \
+ sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ \{\} +
+}
+
+build() {
+ cd poster-$pkgver
+ python2 setup.py build
+}
+
+package() {
+ cd poster-$pkgver
+ python2 setup.py install --root="$pkgdir"
+
+ install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+sha512sums=('2e2b74ec1685c3558dbe571c23e318cbafb74a9e487397c38adc3f8f9eb2864cf4dda70418cd08294c3498e03e0e9f516b6ee6e0ed03b05fe8e7ad7636631e9f'
+
'1e9853e6b43ad99964be76e2ff0e95131144946fdae5b0745ea5e4f333cc56de9b72bc040880ef64dc2e2655e7d522a4e37f2a26edf1ebc9459e8fbbff17e517')