[arch-commits] Commit in (5 files)

Felix Yan fyan at nymeria.archlinux.org
Mon Nov 25 17:09:47 UTC 2013


    Date: Monday, November 25, 2013 @ 18:09:47
  Author: fyan
Revision: 101440

addpkg: python2-poster 0.8.1-2

Added:
  python2-poster/
  python2-poster/repos/
  python2-poster/trunk/
  python2-poster/trunk/LICENSE
  python2-poster/trunk/PKGBUILD

----------+
 LICENSE  |    7 +++++++
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)

Added: python2-poster/trunk/LICENSE
===================================================================
--- python2-poster/trunk/LICENSE	                        (rev 0)
+++ python2-poster/trunk/LICENSE	2013-11-25 17:09:47 UTC (rev 101440)
@@ -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.

Added: python2-poster/trunk/PKGBUILD
===================================================================
--- python2-poster/trunk/PKGBUILD	                        (rev 0)
+++ python2-poster/trunk/PKGBUILD	2013-11-25 17:09:47 UTC (rev 101440)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Thomas Jost <schnouki at schnouki.net>
+
+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')




More information about the arch-commits mailing list