[arch-commits] Commit in pysmbc/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Mon Jul 23 15:40:43 UTC 2018


    Date: Monday, July 23, 2018 @ 15:40:43
  Author: foutrelis
Revision: 329440

archrelease: copy trunk to staging-x86_64

Added:
  pysmbc/repos/staging-x86_64/
  pysmbc/repos/staging-x86_64/PKGBUILD
    (from rev 329439, pysmbc/trunk/PKGBUILD)

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

Copied: pysmbc/repos/staging-x86_64/PKGBUILD (from rev 329439, pysmbc/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2018-07-23 15:40:43 UTC (rev 329440)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer:
+
+pkgbase=pysmbc
+pkgname=('python2-pysmbc' 'python-pysmbc')
+pkgver=1.0.15.8
+pkgrel=2
+arch=('x86_64')
+url="http://pypi.python.org/pypi/pysmbc/"
+license=('GPL')
+makedepends=('python2' 'python' 'smbclient')
+# validpgpkeys=('228521116D3438163C2EA5B916BED1016069BE55')  # Tsukasa Hamano, revoked
+source=(https://pypi.io/packages/source/p/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2)
+md5sums=('56ea1ddc2451d6c773daef37ad1807cd')
+
+prepare() {
+  cp -r ${pkgbase}-${pkgver} ${pkgbase}-${pkgver}-python2
+  sed -i 's|/usr/bin/python|/usr/bin/python2|' ${pkgbase}-${pkgver}-python2/smbc/xattr.py
+}
+
+build(){
+  cd ${pkgbase}-${pkgver}
+  python setup.py build
+  cd "${srcdir}"/${pkgbase}-${pkgver}-python2
+  python2 setup.py build
+}
+
+package_python-pysmbc() {
+  pkgdesc="Python 3 bindings for libsmbclient"
+  depends=('python' 'smbclient')
+
+  cd ${pkgbase}-${pkgver}
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pysmbc() {
+  pkgdesc="Python 2 bindings for libsmbclient"
+  depends=('python2' 'smbclient')
+
+  cd ${pkgbase}-${pkgver}-python2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list