[arch-commits] Commit in python-appdirs/repos (2 files)

Felix Yan fyan at archlinux.org
Sat Sep 19 10:47:55 UTC 2015


    Date: Saturday, September 19, 2015 @ 12:47:55
  Author: fyan
Revision: 140736

archrelease: copy trunk to community-staging-any

Added:
  python-appdirs/repos/community-staging-any/
  python-appdirs/repos/community-staging-any/PKGBUILD
    (from rev 140735, python-appdirs/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: python-appdirs/repos/community-staging-any/PKGBUILD (from rev 140735, python-appdirs/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 10:47:55 UTC (rev 140736)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Tobias Roettger <toroettg at gmail.com>
+
+pkgbase=python-appdirs
+pkgname=(python-appdirs python2-appdirs)
+pkgver=1.4.0
+pkgrel=3
+pkgdesc='A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".'
+arch=(any)
+url="https://github.com/ActiveState/appdirs"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/source/a/appdirs/appdirs-$pkgver.tar.gz")
+md5sums=('1d17b4c9694ab84794e228f28dc3275b')
+
+prepare() {
+  cp -a appdirs-$pkgver{,-py2}
+}
+
+check() {
+  cd "$srcdir/appdirs-$pkgver"
+  python setup.py test
+
+  cd "$srcdir/appdirs-$pkgver-py2"
+  python2 setup.py test
+}
+
+package_python-appdirs() {
+  depends=('python')
+
+  cd "$srcdir/appdirs-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+package_python2-appdirs() {
+  depends=('python2')
+
+  cd "$srcdir/appdirs-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list