[arch-commits] Commit in python-mpd2/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Jun 30 18:47:45 UTC 2018
Date: Saturday, June 30, 2018 @ 18:47:45
Author: foutrelis
Revision: 349114
archrelease: copy trunk to community-staging-any
Added:
python-mpd2/repos/community-staging-any/
python-mpd2/repos/community-staging-any/PKGBUILD
(from rev 349113, python-mpd2/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-mpd2/repos/community-staging-any/PKGBUILD (from rev 349113, python-mpd2/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-06-30 18:47:45 UTC (rev 349114)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Jörg Thalheim <joerg at higgsboson.tk>
+# Contributor: Emmanuel Gil Peyrot <linkmauve at linkmauve.fr>
+# Contributor: Peter Richard Lewis <plewis at aur.archlinux.org>
+# Contributor: Wieland Hoffmann <the_mineo at web.de>
+# Contributor: stonecrest <stonecrest[at]gmail[dot]com>
+
+pkgbase=python-mpd2
+pkgname=('python2-mpd2' 'python-mpd2')
+pkgver=1.0.0
+pkgrel=2
+pkgdesc='Python library which provides a client interface for the Music Player Daemon'
+url='https://github.com/Mic92/python-mpd2'
+license=('GPL3')
+makedepends=('python2-setuptools' 'python-setuptools')
+arch=('any')
+source=("python-mpd2-${pkgver}.tar.gz::https://github.com/Mic92/python-mpd2/archive/v${pkgver}.tar.gz")
+sha256sums=('877fa1685a56815107cb0b1eb004e7fe261b620fafd4d38cdaa2b6f3edd35928')
+
+prepare() {
+ cp -r python{,2}-mpd2-${pkgver}
+}
+
+build() {
+ for py in python{,2}; do
+ pushd ${py}-mpd2-${pkgver}
+ ${py} setup.py build
+ popd
+ done
+}
+
+package_python-mpd2() {
+ depends=('python')
+
+ cd python-mpd2-${pkgver}
+
+ python setup.py install --root="$pkgdir/" --optimize='1' --skip-build
+}
+
+package_python2-mpd2() {
+ depends=('python2')
+
+ cd python2-mpd2-${pkgver}
+
+ python2 setup.py install --root="$pkgdir/" --optimize='1' --skip-build
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list