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

Felix Yan felixonmars at archlinux.org
Sun Dec 25 17:12:02 UTC 2016


    Date: Sunday, December 25, 2016 @ 17:12:01
  Author: felixonmars
Revision: 202044

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pylast/repos/community-staging-any/PKGBUILD (from rev 202041, python-pylast/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 17:12:01 UTC (rev 202044)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Steven Allen <steven at stebalien.com>
+# Contributor: Limao Luo <luolimao+AUR at gmail.com>
+# Contributor: Wieland Hoffmann <the_mineo at web.de>
+# Contributor: Amr Hassan <amr.hassan at gmail.com>
+
+pkgbase=python-pylast
+pkgname=('python-pylast' 'python2-pylast')
+pkgver=1.6.0
+pkgrel=2
+pkgdesc='A Python interface to Last.fm and Libre.fm'
+arch=('any')
+url='https://github.com/pylast/pylast'
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("python-pylast-${pkgver}.tar.gz::https://github.com/pylast/pylast/archive/${pkgver}.tar.gz")
+sha256sums=('14e611d231b25a9b2bd1b59baf6fb248834a6377c8dc3162ecf0cb57206d1321')
+
+prepare() {
+  cp -r pylast-${pkgver} python2-pylast-${pkgver}
+}
+
+build() {
+  cd pylast-${pkgver}
+
+  python setup.py build
+
+  cd ../python2-pylast-${pkgver}
+
+  python2 setup.py build
+}
+
+package_python-pylast() {
+  depends=('python-six')
+
+  cd pylast-${pkgver}
+
+  python setup.py install --root="${pkgdir}" --optimize='1'
+}
+
+package_python2-pylast() {
+  depends=('python2-six')
+
+  cd python2-pylast-${pkgver}
+
+  python2 setup.py install --root="${pkgdir}" --optimize='1'
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list